From d3f73a354df9f15318f148b18af5a50b7ab0fe49 Mon Sep 17 00:00:00 2001 From: pawan Date: Fri, 22 May 2020 20:47:24 +0530 Subject: [PATCH] Address some review comments --- beacon_node/client/src/builder.rs | 4 ++-- beacon_node/timer/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,