Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
coxley committed Aug 29, 2024
1 parent 0941401 commit 6deaf1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@ func (s *Server) processUnaryRPC(ctx context.Context, t transport.ServerTranspor
}
return err
}
defer d.Free()
if channelz.IsOn() {
t.IncrMsgRecv()
}
Expand Down Expand Up @@ -1391,8 +1392,6 @@ func (s *Server) processUnaryRPC(ctx context.Context, t transport.ServerTranspor
}
ctx = NewContextWithServerTransportStream(ctx, stream)
reply, appErr := md.Handler(info.serviceImpl, ctx, df, s.opts.unaryInt)
defer d.Free()

if appErr != nil {
appStatus, ok := status.FromError(appErr)
if !ok {
Expand Down

0 comments on commit 6deaf1e

Please sign in to comment.