Skip to content

Commit

Permalink
Metadata request ordering (#6336)
Browse files Browse the repository at this point in the history
* Send metadata request ordering

* Merge branch 'unstable' into metadata-order
  • Loading branch information
pawanjay176 authored Sep 5, 2024
1 parent b50ce60 commit 0fb4a20
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ impl<E: EthSpec> PeerManager<E> {
"connection" => ?endpoint.to_endpoint()
);

if other_established == 0 {
self.events.push(PeerManagerEvent::MetaData(peer_id));
}

// Update the prometheus metrics
if self.metrics_enabled {
metrics::inc_counter(&metrics::PEER_CONNECT_EVENT_COUNT);
Expand All @@ -267,6 +263,10 @@ impl<E: EthSpec> PeerManager<E> {
return;
}

if other_established == 0 {
self.events.push(PeerManagerEvent::MetaData(peer_id));
}

// NOTE: We don't register peers that we are disconnecting immediately. The network service
// does not need to know about these peers.
match endpoint {
Expand Down

0 comments on commit 0fb4a20

Please sign in to comment.