Merge pull request #3845 from halseth/dialer-withcontext-dialer

[trivial] lncfg+lncli: replace WithDialer->WitchContextDialer
This commit is contained in:
Johan T. Halseth authored and GitHub committed 2019-12-19 22:08:02 +01:00
commit f28b809778
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...)