2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-08 01:10:29 +00:00

Merge pull request #204 from Roasbeef/lndclient-resp

lndclient: also set gRPC max resp size for sub-servers
This commit is contained in:
Joost Jager 2020-05-28 14:37:49 +02:00 committed by GitHub
commit 4871abfc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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...)