From e2e6425e6539e703426a480d626b33e6d982638f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 3 Dec 2019 22:59:44 +0300 Subject: [PATCH] linting fixes Signed-off-by: Vasiliy Tolstov --- grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpc.go b/grpc.go index c365d33..7d3d742 100644 --- a/grpc.go +++ b/grpc.go @@ -178,7 +178,7 @@ func (g *grpcServer) handler(srv interface{}, stream grpc.ServerStream) error { fullMethod, ok := grpc.MethodFromServerStream(stream) if !ok { - return grpc.Errorf(codes.Internal, "method does not exist in context") + return status.Errorf(codes.Internal, "method does not exist in context") } serviceName, methodName, err := mgrpc.ServiceMethod(fullMethod)