Skip to content

Commit

Permalink
revert: fix: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Jan 18, 2023
1 parent cbe267b commit fc314de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ mod infra_axum_handlers {
)
}

pub fn handle_get_metrics(State(state): State<SharedAppState>) -> () {
pub fn handle_get_metrics(
State(state): State<SharedAppState>,
) -> impl Handler<_, SharedAppState, ()> {
// we need a separate handler function to create an error tracing span
#[tracing::instrument]
async fn handler(state: &SharedAppState) -> Response {
Expand Down

0 comments on commit fc314de

Please sign in to comment.