fix: set no limit on message size

This commit is contained in:
Derrick Hammer 2024-02-27 07:06:15 -05:00
parent c8a6570e8f
commit d002c56ffe
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -188,9 +188,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let _ = tx.send(());
});
let server = bao_server::BaoServer::new(BaoService::new(global_state.clone()))
.max_decoding_message_size(usize::MAX)
.max_encoding_message_size(usize::MAX);
Server::builder()
.max_frame_size((1 << 24) - 1)
.add_service(bao_server::BaoServer::new(BaoService::new(global_state.clone())))
.add_service(server)
.add_service(health_reporter.1)
.serve_with_shutdown(addr, async {
// This future completes when the shutdown signal is received,