lncfg+lncli: replace WithDialer->WitchContextDialer

WithDialer is deprecated, use WitchContextDialer instead.
This commit is contained in:
Johan T. Halseth
2019-12-17 13:37:25 +01:00
parent f0bd4e775b
commit b3b355659b
2 changed files with 9 additions and 6 deletions

View File

@ -136,7 +136,7 @@ func getClientConn(ctx *cli.Context, skipMacaroons bool) *grpc.ClientConn {
// We need to use a custom dialer so we can also connect to unix sockets
// and not just TCP addresses.
genericDialer := lncfg.ClientAddressDialer(defaultRPCPort)
opts = append(opts, grpc.WithDialer(genericDialer))
opts = append(opts, grpc.WithContextDialer(genericDialer))
opts = append(opts, grpc.WithDefaultCallOptions(maxMsgRecvSize))
conn, err := grpc.Dial(ctx.GlobalString("rpcserver"), opts...)