mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-23 05:05:54 +00:00
set grpc max message size to unlimited (#249)
This commit is contained in:
@@ -112,9 +112,11 @@ ETLSourceImpl<Derived>::ETLSourceImpl(
|
|||||||
boost::asio::ip::make_address(ip_), std::stoi(grpcPort_)};
|
boost::asio::ip::make_address(ip_), std::stoi(grpcPort_)};
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << endpoint;
|
ss << endpoint;
|
||||||
|
grpc::ChannelArguments chArgs;
|
||||||
|
chArgs.SetMaxReceiveMessageSize(-1);
|
||||||
stub_ = org::xrpl::rpc::v1::XRPLedgerAPIService::NewStub(
|
stub_ = org::xrpl::rpc::v1::XRPLedgerAPIService::NewStub(
|
||||||
grpc::CreateChannel(
|
grpc::CreateCustomChannel(
|
||||||
ss.str(), grpc::InsecureChannelCredentials()));
|
ss.str(), grpc::InsecureChannelCredentials(), chArgs));
|
||||||
BOOST_LOG_TRIVIAL(debug) << "Made stub for remote = " << toString();
|
BOOST_LOG_TRIVIAL(debug) << "Made stub for remote = " << toString();
|
||||||
}
|
}
|
||||||
catch (std::exception const& e)
|
catch (std::exception const& e)
|
||||||
|
|||||||
Reference in New Issue
Block a user