Skip to content
Snippets Groups Projects
Commit 5b0959b5 authored by ale's avatar ale
Browse files

Use grpc.NewClient instead of the deprecated Dial method

parent e708f87a
No related branches found
No related tags found
1 merge request!71Use grpc.NewClient instead of the deprecated Dial method
Pipeline #77711 passed
...@@ -48,7 +48,7 @@ func (c *grpcConnCache) Dial(addr string, opts ...grpc.DialOption) (*grpc.Client ...@@ -48,7 +48,7 @@ func (c *grpcConnCache) Dial(addr string, opts ...grpc.DialOption) (*grpc.Client
fullOpts := append([]grpc.DialOption{}, c.opts...) fullOpts := append([]grpc.DialOption{}, c.opts...)
fullOpts = append(fullOpts, opts...) fullOpts = append(fullOpts, opts...)
conn, err := grpc.Dial(addr, fullOpts...) conn, err := grpc.NewClient(addr, fullOpts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment