fix: deprecated grpc.Dial
All checks were successful
build-image / create-empty-commit (push) Successful in 5s
checks / build (push) Successful in 1m14s

This commit is contained in:
张泊明518370910136 2024-09-30 23:38:42 -04:00
parent 0471834bca
commit 5038cf118d
GPG Key ID: D47306D7062CDA9D

View File

@ -27,7 +27,7 @@ func createGRPCConnection(addr, token string) (*grpc.ClientConn, error) {
if token != "" { if token != "" {
opts = append(opts, grpc.WithPerRPCCredentials(newTokenAuth(token))) opts = append(opts, grpc.WithPerRPCCredentials(newTokenAuth(token)))
} }
return grpc.Dial(addr, opts...) return grpc.NewClient(addr, opts...)
} }
type tokenAuth struct { type tokenAuth struct {