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

sqld: Revert be7386 and remove decoding limits #752

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions sqld/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ pub async fn run_rpc_server<A: crate::net::Accept>(
.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 proxy = ProxyServer::new(proxy_service);
let replication = ReplicationLogServer::new(logger_service);

let router = tonic::transport::Server::builder()
.layer(&option_layer(idle_shutdown_layer))
Expand Down
4 changes: 3 additions & 1 deletion sqld/src/rpc/replication_log_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ pub struct ReplicationLogProxyService {

impl ReplicationLogProxyService {
pub fn new(channel: Channel, uri: Uri) -> Self {
let client = ReplicationLogClient::with_origin(channel, uri);
let client =
ReplicationLogClient::with_origin(channel, uri).max_decoding_message_size(usize::MAX);

Self { client }
}
}
Expand Down