mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-26 09:57:59 +00:00
Set max_nodes in ChainEntry
Only add a new node if the current number of connected nodes is below the max Define "first party networks" to be: Polkadot, Kusama, Westend and Rococo. All other networks are capped to 500 nodes
This commit is contained in:
@@ -165,7 +165,7 @@ impl Handler<Initialize> for NodeConnector {
|
||||
|
||||
fn handle(&mut self, msg: Initialize, _: &mut Self::Context) {
|
||||
let Initialize { nid, conn_id, chain } = msg;
|
||||
|
||||
log::trace!(target: "NodeConnector::Initialize", "Initializing a node, nid={}, on conn_id={}", nid, conn_id);
|
||||
let mx = self.multiplex.entry(conn_id).or_default();
|
||||
|
||||
if let ConnMultiplex::Waiting { backlog } = mx {
|
||||
|
||||
Reference in New Issue
Block a user