From 816625c44e658cf3aeaaa886e44ff37604562475 Mon Sep 17 00:00:00 2001 From: CJ Cobb <46455409+cjcobb23@users.noreply.github.com> Date: Tue, 23 Aug 2022 09:30:18 -0400 Subject: [PATCH] set grpc max message size to unlimited (#249) --- src/etl/ETLSource.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etl/ETLSource.cpp b/src/etl/ETLSource.cpp index 20757f2b..f18d5ea6 100644 --- a/src/etl/ETLSource.cpp +++ b/src/etl/ETLSource.cpp @@ -112,9 +112,11 @@ ETLSourceImpl::ETLSourceImpl( boost::asio::ip::make_address(ip_), std::stoi(grpcPort_)}; std::stringstream ss; ss << endpoint; + grpc::ChannelArguments chArgs; + chArgs.SetMaxReceiveMessageSize(-1); stub_ = org::xrpl::rpc::v1::XRPLedgerAPIService::NewStub( - grpc::CreateChannel( - ss.str(), grpc::InsecureChannelCredentials())); + grpc::CreateCustomChannel( + ss.str(), grpc::InsecureChannelCredentials(), chArgs)); BOOST_LOG_TRIVIAL(debug) << "Made stub for remote = " << toString(); } catch (std::exception const& e)