mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-15 12:50:28 +02:00
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.
This commit is contained in:
parent
2ec580c92b
commit
e97ec65444
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue