Skip to content

Commit

Permalink
Merge branch 'fork_9' of github.com:0xPolygonHermez/zkevm-prover into…
Browse files Browse the repository at this point in the history
… fork_9
  • Loading branch information
fractasy committed May 23, 2024
2 parents a2b6e1a + 01529b4 commit 884090f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/service/aggregator/aggregator_client_mock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ AggregatorClientMock::AggregatorClientMock (Goldilocks &fr, const Config &config
fr(fr),
config(config)
{
grpc::ChannelArguments channelArguments;
channelArguments.SetMaxReceiveMessageSize((config.aggregatorClientMaxRecvMsgSize == 0) ? -1 : config.aggregatorClientMaxRecvMsgSize);

// Create channel
std::shared_ptr<grpc::Channel> channel = ::grpc::CreateChannel(config.aggregatorClientHost + ":" + to_string(config.aggregatorClientPort), grpc::InsecureChannelCredentials());
std::shared_ptr<grpc::Channel> channel = ::grpc::CreateCustomChannel(config.aggregatorClientHost + ":" + to_string(config.aggregatorClientPort), grpc::InsecureChannelCredentials(), channelArguments);

// Create stub (i.e. client)
stub = new aggregator::v1::AggregatorService::Stub(channel);
Expand Down

0 comments on commit 884090f

Please sign in to comment.