From f2cfd562c3e9d2634ed7243d110c41106d04c359 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 23 Jun 2023 12:23:44 +0300 Subject: [PATCH] dialopts fix Signed-off-by: Vasiliy Tolstov --- grpc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grpc.go b/grpc.go index b06b836..abac121 100644 --- a/grpc.go +++ b/grpc.go @@ -118,6 +118,9 @@ func (g *grpcClient) call(ctx context.Context, addr string, req client.Request, ), } + if opts := g.getGrpcDialOptions(g.opts.Context); opts != nil { + grpcDialOptions = append(grpcDialOptions, opts...) + } if opts := g.getGrpcDialOptions(opts.Context); opts != nil { grpcDialOptions = append(grpcDialOptions, opts...) }