mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +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()
|
"connection" => ?endpoint.to_endpoint()
|
||||||
);
|
);
|
||||||
|
|
||||||
if other_established == 0 {
|
|
||||||
self.events.push(PeerManagerEvent::MetaData(peer_id));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the prometheus metrics
|
// Update the prometheus metrics
|
||||||
if self.metrics_enabled {
|
if self.metrics_enabled {
|
||||||
metrics::inc_counter(&metrics::PEER_CONNECT_EVENT_COUNT);
|
metrics::inc_counter(&metrics::PEER_CONNECT_EVENT_COUNT);
|
||||||
@@ -267,6 +263,10 @@ impl<E: EthSpec> PeerManager<E> {
|
|||||||
return;
|
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
|
// NOTE: We don't register peers that we are disconnecting immediately. The network service
|
||||||
// does not need to know about these peers.
|
// does not need to know about these peers.
|
||||||
match endpoint {
|
match endpoint {
|
||||||
|
|||||||
Reference in New Issue
Block a user