From 1e19359ab1f51e1c2a830014f4f594cb56eddc43 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 6 Apr 2022 18:38:38 +0300 Subject: [PATCH] allow to transfer *status.Status as error from handler Signed-off-by: Vasiliy Tolstov --- grpc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grpc.go b/grpc.go index c55ccf6..497f536 100644 --- a/grpc.go +++ b/grpc.go @@ -368,8 +368,7 @@ func (g *grpcServer) processRequest(ctx context.Context, stream grpc.ServerStrea } // Unmarshal request - // TODO: avoid Marshal call later by recv to frame and reuse it data - if err := stream.RecvMsg(argv.Interface()); err != nil { + if err = stream.RecvMsg(argv.Interface()); err != nil { return err }