diff --git a/node/actors/network/src/lib.rs b/node/actors/network/src/lib.rs index b56feeea..f99d1ad6 100644 --- a/node/actors/network/src/lib.rs +++ b/node/actors/network/src/lib.rs @@ -25,6 +25,7 @@ mod watch; pub use config::*; +/// Limit for the rate of accepting new TCP connections. const MAX_CONNECTION_ACCEPT_RATE: limiter::Rate = limiter::Rate { burst: 10, refresh: time::Duration::milliseconds(100), diff --git a/node/actors/network/src/mux/mod.rs b/node/actors/network/src/mux/mod.rs index 2c7fb5f5..b8b4d0c3 100644 --- a/node/actors/network/src/mux/mod.rs +++ b/node/actors/network/src/mux/mod.rs @@ -81,7 +81,6 @@ use crate::{frame, noise::bytes}; use anyhow::Context as _; use std::{collections::BTreeMap, sync::Arc}; use zksync_concurrency::{ctx, ctx::channel, io, scope, sync}; -use zksync_protobuf::ProtoFmt as _; mod config; mod handshake;