allow to transfer *status.Status as error from handler #107

Merged
vtolstov merged 3 commits from status into v3 2022-04-06 18:44:21 +03:00
Showing only changes of commit 1e19359ab1 - Show all commits

View File

@ -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
}