mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
refactor: remove service_name (#8606)
Which issue # does this PR address? #8586 Please list or describe the changes introduced by this PR. Remove `service_name` from `TaskExecutor` Co-Authored-By: Abhivansh <31abhivanshj@gmail.com>
This commit is contained in:
@@ -54,8 +54,6 @@ const RETRY_DELAY: Duration = Duration::from_secs(2);
|
||||
/// The time between polls when waiting for genesis.
|
||||
const WAITING_FOR_GENESIS_POLL_TIME: Duration = Duration::from_secs(12);
|
||||
|
||||
const DOPPELGANGER_SERVICE_NAME: &str = "doppelganger";
|
||||
|
||||
/// Compute attestation selection proofs this many slots before they are required.
|
||||
///
|
||||
/// At start-up selection proofs will be computed with less lookahead out of necessity.
|
||||
@@ -608,8 +606,7 @@ impl<E: EthSpec> ProductionValidatorClient<E> {
|
||||
if let Some(doppelganger_service) = self.doppelganger_service.clone() {
|
||||
DoppelgangerService::start_update_service(
|
||||
doppelganger_service,
|
||||
self.context
|
||||
.service_context(DOPPELGANGER_SERVICE_NAME.into()),
|
||||
self.context.clone(),
|
||||
self.validator_store.clone(),
|
||||
self.duties_service.beacon_nodes.clone(),
|
||||
self.duties_service.slot_clock.clone(),
|
||||
@@ -619,7 +616,7 @@ impl<E: EthSpec> ProductionValidatorClient<E> {
|
||||
info!("Doppelganger protection disabled.")
|
||||
}
|
||||
|
||||
let context = self.context.service_context("notifier".into());
|
||||
let context = self.context.clone();
|
||||
spawn_notifier(
|
||||
self.duties_service.clone(),
|
||||
context.executor,
|
||||
|
||||
Reference in New Issue
Block a user