fix ctx.Done issue #720 (#1166)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-02-06 00:13:14 +03:00
parent 0807802cea
commit 8740815c56

View File

@ -147,7 +147,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R
case err := <-ch: case err := <-ch:
grr = err grr = err
case <-ctx.Done(): case <-ctx.Done():
grr = ctx.Err() grr = errors.Timeout("go.micro.client", "%v", ctx.Err())
} }
return grr return grr