Fix double counted metrics (#5476)

* Fix double counted metrics
This commit is contained in:
Akihito Nakano 2024-03-26 12:10:26 +09:00 committed by GitHub
parent e4d4e439cb
commit 8cec8a6793
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -803,9 +803,6 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
// start a ping and status timer for the peer
self.status_peers.insert(*peer_id);
// increment prometheus metrics
metrics::inc_counter(&metrics::PEER_CONNECT_EVENT_COUNT);
true
}