skip reporting peer count according to config

This commit is contained in:
Felipe Andrade 2023-05-09 19:31:49 -07:00
parent 5f61935bc4
commit 88a172f739

@ -239,8 +239,8 @@ func (cp *ConsensusPoller) UpdateBackend(ctx context.Context, be *Backend) {
log.Warn("error updating backend", "name", be.Name, "err", err)
return
}
RecordConsensusBackendPeerCount(be, peerCount)
}
RecordConsensusBackendPeerCount(be, peerCount)
latestBlockNumber, latestBlockHash, err := cp.fetchBlock(ctx, be, "latest")
if err != nil {