Skip to content

Commit

Permalink
fix: prometheus feature compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Mar 12, 2022
1 parent 0616eb0 commit 95167b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snarkos/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ impl<N: Network, E: Environment> Server<N, E> {
fn initialize_metrics(ledger: LedgerReader<N>) {
#[cfg(not(feature = "test"))]
if let Some(handler) = snarkos_metrics::initialize() {
E::resources().register_task(handler);
// No need to provide an id, as the task will run indefinitely.
E::resources().register_task(None, handler);
}

// Set the block height as it could already be non-zero.
Expand Down

0 comments on commit 95167b4

Please sign in to comment.