mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user