Use the more descriptive user_index instead of id

This commit is contained in:
Mac L
2024-02-05 16:32:30 +11:00
parent a5e934883a
commit e368397bf5
5 changed files with 57 additions and 39 deletions

View File

@@ -39,7 +39,8 @@ async fn notify<T: SlotClock + 'static, E: EthSpec>(
duties_service: &DutiesService<T, E>,
log: &Logger,
) {
let (candidate_info, num_available, num_synced) = duties_service.beacon_nodes.get_notifier_info().await;
let (candidate_info, num_available, num_synced) =
duties_service.beacon_nodes.get_notifier_info().await;
let num_total = candidate_info.len();
let num_synced_fallback = num_synced.saturating_sub(1);
@@ -89,7 +90,7 @@ async fn notify<T: SlotClock + 'static, E: EthSpec>(
log,
"Beacon node info";
"status" => "Connected",
"id" => info.id,
"index" => info.index,
"endpoint" => info.node,
"head_slot" => %health.head,
"is_optimistic" => ?health.optimistic_status,
@@ -101,7 +102,7 @@ async fn notify<T: SlotClock + 'static, E: EthSpec>(
log,
"Beacon node info";
"status" => "Disconnected",
"id" => info.id,
"index" => info.index,
"endpoint" => info.node,
);
}