Skip to content

Commit

Permalink
Use Dial instead of NewClient
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Apr 22, 2024
1 parent 5c490ec commit a4c728e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/grpcclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func Dial(target string, failFast FailFast, opts ...grpc.DialOption) (*grpc.Clie

newopts = append(newopts, interceptors()...)

return grpc.NewClient(target, newopts...)
return grpc.Dial(target, newopts...)
}

func interceptors() []grpc.DialOption {
Expand Down

0 comments on commit a4c728e

Please sign in to comment.