mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Metadata request ordering (#6336)
* Send metadata request ordering * Merge branch 'unstable' into metadata-order
This commit is contained in:
@@ -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);
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user