This commit is contained in:
pawan
2020-05-22 13:30:40 +05:30
parent f5d49287b9
commit 85d099f664
10 changed files with 30 additions and 45 deletions

View File

@@ -232,7 +232,7 @@ where
}
/// Immediately starts the timer service.
fn timer(mut self) -> Result<Self, String> {
fn timer(self) -> Result<Self, String> {
let context = self
.runtime_context
.as_ref()
@@ -311,7 +311,7 @@ where
}
/// Immediately starts the service that periodically logs information each slot.
pub fn notifier(mut self) -> Result<Self, String> {
pub fn notifier(self) -> Result<Self, String> {
let context = self
.runtime_context
.as_ref()

View File

@@ -31,7 +31,6 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
milliseconds_per_slot: u64,
log: slog::Logger,
) -> Result<(), String> {
let log_1 = log.clone();
let slot_duration = Duration::from_millis(milliseconds_per_slot);
let duration_to_next_slot = beacon_chain
.slot_clock
@@ -149,7 +148,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
};
// run the notifier on the current executor
executor.spawn(interval_future.unwrap_or_else(|_| ()), "beacon_notifier");
executor.spawn(interval_future.unwrap_or_else(|_| ()), "notifier");
Ok(())
}