Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit be73866

Browse files
authored
Remove encoding message limit (#747)
1 parent 80ea873 commit be73866

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sqld/src/rpc/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,14 @@ pub async fn run_rpc_server<A: crate::net::Accept>(
8585
.await
8686
.context("http server")?;
8787
} else {
88+
let proxy = ProxyServer::new(proxy_service).max_encoding_message_size(usize::MAX);
89+
let replication =
90+
ReplicationLogServer::new(logger_service).max_encoding_message_size(usize::MAX);
91+
8892
let router = tonic::transport::Server::builder()
8993
.layer(&option_layer(idle_shutdown_layer))
90-
.add_service(ProxyServer::new(proxy_service))
91-
.add_service(ReplicationLogServer::new(logger_service))
94+
.add_service(proxy)
95+
.add_service(replication)
9296
.into_router();
9397

9498
let h2c = crate::h2c::H2cMaker::new(router);

0 commit comments

Comments
 (0)