From 43c070fce30d80bd2cca5a403dea938b956e20a9 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Fri, 6 Oct 2023 11:27:06 -0400 Subject: [PATCH] Remove encoding message limit --- sqld/src/rpc/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sqld/src/rpc/mod.rs b/sqld/src/rpc/mod.rs index 356d5783..252d58e7 100644 --- a/sqld/src/rpc/mod.rs +++ b/sqld/src/rpc/mod.rs @@ -85,10 +85,14 @@ pub async fn run_rpc_server( .await .context("http server")?; } else { + let proxy = ProxyServer::new(proxy_service).max_encoding_message_size(usize::MAX); + let replication = + ReplicationLogServer::new(logger_service).max_encoding_message_size(usize::MAX); + let router = tonic::transport::Server::builder() .layer(&option_layer(idle_shutdown_layer)) - .add_service(ProxyServer::new(proxy_service)) - .add_service(ReplicationLogServer::new(logger_service)) + .add_service(proxy) + .add_service(replication) .into_router(); let h2c = crate::h2c::H2cMaker::new(router);