Skip to content

Commit

Permalink
fixup! feat(inspect-server): support POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Aug 24, 2023
1 parent 005ae70 commit 7fa0ae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions offchain/inspect-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit 7fa0ae4

Please sign in to comment.