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