diff --git a/beacon_node/client/src/builder.rs b/beacon_node/client/src/builder.rs index 3a753bb4ac..9df25ab00b 100644 --- a/beacon_node/client/src/builder.rs +++ b/beacon_node/client/src/builder.rs @@ -248,7 +248,7 @@ where .ok_or_else(|| "node timer requires a chain spec".to_string())? .milliseconds_per_slot; - let _ = timer::spawn( + timer::spawn_timer( context.executor, beacon_chain, milliseconds_per_slot, @@ -331,7 +331,7 @@ where .ok_or_else(|| "slot_notifier requires a chain spec".to_string())? .milliseconds_per_slot; - let _ = spawn_notifier( + spawn_notifier( context.executor, beacon_chain, network_globals, diff --git a/beacon_node/timer/src/lib.rs b/beacon_node/timer/src/lib.rs index 235be0808b..92fd7c8418 100644 --- a/beacon_node/timer/src/lib.rs +++ b/beacon_node/timer/src/lib.rs @@ -11,7 +11,7 @@ use std::time::Duration; use tokio::time::{interval_at, Instant}; /// Spawns a timer service which periodically executes tasks for the beacon chain -pub fn spawn( +pub fn spawn_timer( executor: environment::TaskExecutor, beacon_chain: Arc>, milliseconds_per_slot: u64,