Skip to content

Commit

Permalink
run rustfmt
Browse files Browse the repository at this point in the history
Signed-off-by: Ata Fatahi <[email protected]>
  • Loading branch information
MrAta committed Dec 11, 2024
1 parent 2b52329 commit fb69bc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rust/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use crate::router::PolicyConfig;
use crate::router::Router;
use actix_web::web::JsonConfig;
use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder};
use bytes::Bytes;
use env_logger::Builder;
use log::{info, LevelFilter};
use std::collections::HashMap;
use std::io::Write;
use actix_web::web::JsonConfig;

#[derive(Debug)]
pub struct AppState {
Expand Down Expand Up @@ -166,7 +166,10 @@ pub async fn startup(config: ServerConfig) -> std::io::Result<()> {
info!("✅ Starting router on {}:{}", config.host, config.port);
info!("✅ Serving Worker URLs: {:?}", config.worker_urls);
info!("✅ Policy Config: {:?}", config.policy_config);
info!("✅ Max payload size: {} MB", config.max_payload_size / (1024 * 1024));
info!(
"✅ Max payload size: {} MB",
config.max_payload_size / (1024 * 1024)
);

HttpServer::new(move || {
App::new()
Expand Down

0 comments on commit fb69bc2

Please sign in to comment.