fix: deprecated grpc.Dial
This commit is contained in:
parent
0471834bca
commit
5038cf118d
|
@ -27,7 +27,7 @@ func createGRPCConnection(addr, token string) (*grpc.ClientConn, error) {
|
|||
if token != "" {
|
||||
opts = append(opts, grpc.WithPerRPCCredentials(newTokenAuth(token)))
|
||||
}
|
||||
return grpc.Dial(addr, opts...)
|
||||
return grpc.NewClient(addr, opts...)
|
||||
}
|
||||
|
||||
type tokenAuth struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user