Fix peer count in edge dashboard (#2090)

Fixes #2075
This commit is contained in:
Pankaj Garg
2018-12-10 14:24:32 -08:00
committed by GitHub
parent 094f0a8be3
commit bc96bd3410
2 changed files with 42 additions and 3 deletions

View File

@@ -216,6 +216,7 @@ impl BroadcastService {
let mut tick_height_ = tick_height;
loop {
let broadcast_table = cluster_info.read().unwrap().tvu_peers();
inc_new_counter_info!("broadcast_service-num_peers", broadcast_table.len() + 1);
let leader_id = cluster_info.read().unwrap().leader_id();
if let Err(e) = broadcast(
max_tick_height,