mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Merge branch 'unstable' into vc-fallback
This commit is contained in:
@@ -7,7 +7,7 @@ use tokio::time::{sleep, Duration};
|
||||
use types::EthSpec;
|
||||
|
||||
/// Spawns a notifier service which periodically logs information about the node.
|
||||
pub fn spawn_notifier<T: EthSpec>(client: &ProductionValidatorClient<T>) -> Result<(), String> {
|
||||
pub fn spawn_notifier<E: EthSpec>(client: &ProductionValidatorClient<E>) -> Result<(), String> {
|
||||
let context = client.context.service_context("notifier".into());
|
||||
let executor = context.executor.clone();
|
||||
let duties_service = client.duties_service.clone();
|
||||
@@ -58,7 +58,7 @@ async fn notify<T: SlotClock + 'static, E: EthSpec>(
|
||||
);
|
||||
if num_synced > 0 {
|
||||
let primary = candidate_info
|
||||
.get(0)
|
||||
.first()
|
||||
.map(|candidate| candidate.node.as_str())
|
||||
.unwrap_or("None");
|
||||
info!(
|
||||
|
||||
Reference in New Issue
Block a user