diff --git a/cmd/loop/main.go b/cmd/loop/main.go index 0530819..2e7975d 100644 --- a/cmd/loop/main.go +++ b/cmd/loop/main.go @@ -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, } diff --git a/loopd/daemon.go b/loopd/daemon.go index d2eb263..f31fbad 100644 --- a/loopd/daemon.go +++ b/loopd/daemon.go @@ -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