Skip to content

Commit

Permalink
fix ctx.Done issue micro#720 (micro#1166)
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Tolstov <[email protected]>
  • Loading branch information
vtolstov authored Feb 5, 2020
1 parent 12181bd commit a44dc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R
case err := <-ch:
grr = err
case <-ctx.Done():
grr = ctx.Err()
grr = errors.Timeout("go.micro.client", "%v", ctx.Err())
}

return grr
Expand Down

0 comments on commit a44dc90

Please sign in to comment.