Fix interceptor handler parameter

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2017-02-21 08:41:31 -08:00
parent da8f4bb904
commit 7206427df4

View file

@ -208,7 +208,7 @@ func interceptor(ctx gocontext.Context,
default: default:
fmt.Printf("unknown GRPC server type: %#v\n", info.Server) 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 { func handleSignals(signals chan os.Signal, server *grpc.Server) error {