Skip to content

Commit

Permalink
jormungandr:fix compilation with prometheus feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Nov 11, 2021
1 parent 1a0d59a commit 8552a34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jormungandr/src/rest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ pub async fn start_rest_server(config: Config, context: ContextLock) {
span
}));

setup_prometheus(api, config, stopper_rx).await;
setup_prometheus(api, config, context, stopper_rx).await;
}

#[cfg(feature = "prometheus-metrics")]
async fn setup_prometheus<App>(
app: App,
config: Config,
context: ContextLock,
shutdown_signal: impl Future<Output = ()> + Send + 'static,
) where
App: Filter<Error = warp::Rejection> + Clone + Send + Sync + 'static,
Expand All @@ -92,6 +93,7 @@ async fn setup_prometheus<App>(
async fn setup_prometheus<App>(
app: App,
config: Config,
_context: ContextLock,
shutdown_signal: impl Future<Output = ()> + Send + 'static,
) where
App: Filter<Error = warp::Rejection> + Clone + Send + Sync + 'static,
Expand Down

0 comments on commit 8552a34

Please sign in to comment.