lncfg+lncli: replace WithDialer->WitchContextDialer

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

No files matched your search

+1 -1
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...)