From 21f8feb0148ac814b53e59f70bd7b81708eec43b Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Thu, 11 Apr 2024 08:03:56 +0200 Subject: [PATCH] Formatting --- rust/agama-server/src/web/service.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rust/agama-server/src/web/service.rs b/rust/agama-server/src/web/service.rs index a5eeb93179..5490fef000 100644 --- a/rust/agama-server/src/web/service.rs +++ b/rust/agama-server/src/web/service.rs @@ -100,10 +100,12 @@ impl MainServiceBuilder { .layer(TraceLayer::new_for_http() .on_request(|request: &Request, _span: &Span| { tracing::info!("request: {} {}", request.method(), request.uri().path()) - }) - .on_response(|response: &Response, latency: Duration, _span: &Span| { - tracing::info!("response: {} {:?}", response.status(), latency) - }) + }) + .on_response( + |response: &Response, latency: Duration, _span: &Span| { + tracing::info!("response: {} {:?}", response.status(), latency) + }, + ), ) .layer(CompressionLayer::new().br(true)) .with_state(state)