Address some review comments

This commit is contained in:
pawan
2020-05-22 20:47:24 +05:30
parent 99a9edf7d5
commit d3f73a354d
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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<T: BeaconChainTypes>(
pub fn spawn_timer<T: BeaconChainTypes>(
executor: environment::TaskExecutor,
beacon_chain: Arc<BeaconChain<T>>,
milliseconds_per_slot: u64,