Skip to content

Commit e97ec65

Browse files
committed
lndclient: also set gRPC max resp size for sub-servers
In this commit, we now ensure that we set the max resp size for the sub-server connection we create. Without this, it's possible that several calls fail if the responses aren't yet paginated, or are very large.
1 parent 2ec580c commit e97ec65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lndclient/lnd_services.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func getClientConn(cfg *LndServicesConfig) (*grpc.ClientConn, error) {
448448
// Use a custom dialer, to allow connections to unix sockets,
449449
// in-memory listeners etc, and not just TCP addresses.
450450
grpc.WithContextDialer(cfg.Dialer),
451+
grpc.WithDefaultCallOptions(maxMsgRecvSize),
451452
}
452453

453454
conn, err := grpc.Dial(cfg.LndAddress, opts...)

0 commit comments

Comments
 (0)