set grpc max message size to unlimited (#249)

This commit is contained in:
CJ Cobb
2022-08-23 09:30:18 -04:00
committed by GitHub
parent 48e87d7c07
commit 816625c44e

View File

@@ -112,9 +112,11 @@ ETLSourceImpl<Derived>::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)