Skip to content

Commit

Permalink
fix: re-order layers (#6294)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Jul 17, 2024
1 parent a25bab4 commit 70ef36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bin/dust_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2679,12 +2679,12 @@ fn main() {

// Extensions
.layer(DefaultBodyLimit::disable())
.layer(from_fn(validate_api_key))
.layer(
TraceLayer::new_for_http()
.make_span_with(CoreRequestMakeSpan::new())
.on_response(trace::DefaultOnResponse::new().level(Level::INFO)),
)
.layer(from_fn(validate_api_key))
.with_state(state.clone());

let sqlite_heartbeat_router = Router::new()
Expand Down

0 comments on commit 70ef36b

Please sign in to comment.