Skip to content

Commit

Permalink
Fix num_connected increase
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Aug 23, 2024
1 parent 1a58c82 commit cc8ec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/client/network/sync/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,8 @@ where
if let Some(metrics) = &self.metrics {
metrics.peers.inc();
}
self.num_connected.fetch_add(1, Ordering::AcqRel);
}
self.num_connected.fetch_add(1, Ordering::AcqRel);
self.peer_store_handle.set_peer_role(&peer_id, status.roles.into());

if self.default_peers_set_no_slot_peers.contains(&peer_id) {
Expand Down

0 comments on commit cc8ec77

Please sign in to comment.