loopd: export MaxMsgRecvSize

pull/443/head
Harsha Goli 2 years ago
parent 0d1cb3e5d6
commit 15505b22c0
No known key found for this signature in database
GPG Key ID: 90E00CCB1C74C611

@ -40,9 +40,9 @@ var (
defaultSwapWaitTime = 30 * time.Minute
// maxMsgRecvSize is the largest message our client will receive. We
// MaxMsgRecvSize is the largest message our client will receive. We
// set this to 200MiB atm.
maxMsgRecvSize = grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 200)
MaxMsgRecvSize = grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 200)
// defaultMacaroonTimeout is the default macaroon timeout in seconds
// that we set when sending it over the line.
@ -378,7 +378,7 @@ func getClientConn(address, tlsCertPath, macaroonPath string) (*grpc.ClientConn,
}
opts := []grpc.DialOption{
grpc.WithDefaultCallOptions(maxMsgRecvSize),
grpc.WithDefaultCallOptions(MaxMsgRecvSize),
macOption,
}

@ -25,9 +25,9 @@ import (
)
var (
// maxMsgRecvSize is the largest message our REST proxy will receive. We
// MaxMsgRecvSize is the largest message our REST proxy will receive. We
// set this to 200MiB atm.
maxMsgRecvSize = grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 200)
MaxMsgRecvSize = grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 200)
// errOnlyStartOnce is the error that is returned if the daemon is
// started more than once.
@ -260,7 +260,7 @@ func (d *Daemon) startWebServers() error {
}
proxyOpts := []grpc.DialOption{
grpc.WithTransportCredentials(*restClientCreds),
grpc.WithDefaultCallOptions(maxMsgRecvSize),
grpc.WithDefaultCallOptions(MaxMsgRecvSize),
}
// With TLS enabled by default, we cannot call 0.0.0.0 internally from

Loading…
Cancel
Save