Merge pull request #204 from Roasbeef/lndclient-resp

lndclient: also set gRPC max resp size for sub-servers
pull/214/head
Joost Jager 4 years ago committed by GitHub
commit 4871abfc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -448,6 +448,7 @@ func getClientConn(cfg *LndServicesConfig) (*grpc.ClientConn, error) {
// Use a custom dialer, to allow connections to unix sockets,
// in-memory listeners etc, and not just TCP addresses.
grpc.WithContextDialer(cfg.Dialer),
grpc.WithDefaultCallOptions(maxMsgRecvSize),
}
conn, err := grpc.Dial(cfg.LndAddress, opts...)

Loading…
Cancel
Save