mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-15 15:21:03 +00:00
First/Third party by genesis hash, not label. Make limit configurable and default to 1k (#424)
* First/Third party by genesis hash, not label. Make limit configurable * Fix a test that relies on not being a node limit * remove a now-invalid comment * Cargo fmt * Fix another naff comment * Update backend/telemetry_core/src/state/chain.rs Comment tweak Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
@@ -79,6 +79,9 @@ struct Opts {
|
||||
/// messages in an attempt to let it reduce?
|
||||
#[structopt(long)]
|
||||
aggregator_queue_len: Option<usize>,
|
||||
/// How many nodes from third party chains are allowed to connect before we prevent connections from them.
|
||||
#[structopt(long, default_value = "1000")]
|
||||
max_third_party_nodes: usize,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -128,6 +131,7 @@ async fn start_server(num_aggregators: usize, opts: Opts) -> anyhow::Result<()>
|
||||
AggregatorOpts {
|
||||
max_queue_len: aggregator_queue_len,
|
||||
denylist: opts.denylist,
|
||||
max_third_party_nodes: opts.max_third_party_nodes,
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user