set dial timeout in stream

This commit is contained in:
Asim Aslam 2020-02-13 18:51:32 +00:00 committed by Vasiliy Tolstov
parent 978659a441
commit 5657fd07d2

View File

@ -189,6 +189,7 @@ func (g *grpcClient) stream(ctx context.Context, node *registry.Node, req client
grpcDialOptions := []grpc.DialOption{ grpcDialOptions := []grpc.DialOption{
grpc.WithDefaultCallOptions(grpc.ForceCodec(wc)), grpc.WithDefaultCallOptions(grpc.ForceCodec(wc)),
grpc.WithTimeout(opts.DialTimeout),
g.secure(), g.secure(),
} }