Skip to content

Commit

Permalink
2MiB payload
Browse files Browse the repository at this point in the history
  • Loading branch information
noisyscanner committed Nov 7, 2024
1 parent 75722fc commit 4039f36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async fn webserver(
HttpServer::new(move || App::new()
.app_data(tracer.clone())
.app_data(metric_obj.clone())
.app_data(actix_web::web::PayloadConfig::new(1024 * 1024 * 2)) // Set max file size to 2 Mib
.service(metrics)
.service(recv)
)
Expand Down

0 comments on commit 4039f36

Please sign in to comment.