Merge pull request #550 from hqhq/fix_interceptor_ctx

Fix interceptor handler parameter
This commit is contained in:
Michael Crosby 2017-02-21 11:13:55 -08:00 committed by GitHub
commit 559a3c1d3c

View file

@ -208,7 +208,7 @@ func interceptor(ctx gocontext.Context,
default:
fmt.Printf("unknown GRPC server type: %#v\n", info.Server)
}
return handler(global, req)
return handler(ctx, req)
}
func handleSignals(signals chan os.Signal, server *grpc.Server) error {