From 8740815c56f058e25725dbeab922b7c145c1f534 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 6 Feb 2020 00:13:14 +0300 Subject: [PATCH] fix ctx.Done issue #720 (#1166) Signed-off-by: Vasiliy Tolstov --- grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpc.go b/grpc.go index dc79076..542c917 100644 --- a/grpc.go +++ b/grpc.go @@ -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