Update grpc library use (#6826)
Replace deprecated grpc Dial/DialContext with grpc.NewClient. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
aba3352793
commit
ec8e3844a9
2 changed files with 2 additions and 5 deletions
|
@ -37,7 +37,7 @@ func newProxy(addr string, tlsConfig *tls.Config) (*Proxy, error) {
|
|||
p.dialOpts = append(p.dialOpts, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
}
|
||||
|
||||
conn, err := grpc.Dial(p.addr, p.dialOpts...)
|
||||
conn, err := grpc.NewClient(p.addr, p.dialOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue