1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

fix ctx.Done issue #720 (#1166)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Vasiliy Tolstov 2020-02-06 00:13:14 +03:00 committed by GitHub
parent 12181bd441
commit a44dc90d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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