From 7fa0ae45f5e4d8ff5d7e98a846870f45421242ac Mon Sep 17 00:00:00 2001 From: Marcel Moura Date: Thu, 24 Aug 2023 15:34:43 -0300 Subject: [PATCH] fixup! feat(inspect-server): support POST requests --- offchain/inspect-server/src/server.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/offchain/inspect-server/src/server.rs b/offchain/inspect-server/src/server.rs index b2572f188..121b531aa 100644 --- a/offchain/inspect-server/src/server.rs +++ b/offchain/inspect-server/src/server.rs @@ -14,6 +14,9 @@ use crate::inspect::{ CompletionStatus, InspectClient, InspectStateResponse, Report, }; +// (2^20 - 64) bytes, which is the length of the RX buffer minus metadata +const CARTESI_MACHINE_RX_BUFFER_LIMIT: usize = 1_048_512; + pub fn create( config: &InspectServerConfig, inspect_client: InspectClient, @@ -24,6 +27,7 @@ pub fn create( let cors = Cors::permissive(); App::new() .app_data(web::Data::new(inspect_client.clone())) + .app_data(web::PayloadConfig::new(CARTESI_MACHINE_RX_BUFFER_LIMIT)) .wrap(middleware::Logger::default()) .wrap(cors) .service(