Skip to content

Commit

Permalink
s/substrate_network_bit_rate_per_connection/bit_rate_per_connection i…
Browse files Browse the repository at this point in the history
…n `finality-aleph/src/network/build/mod.rs`
  • Loading branch information
fixxxedpoint committed Aug 16, 2024
1 parent 65adb85 commit 6b21677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finality-aleph/src/network/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct NetworkOutput<TP: TransactionPool + 'static> {

pub struct SubstrateNetworkConfig {
/// Maximum bit-rate in bytes per second of the substrate network (shared by sync, gossip, etc.).
pub substrate_network_bit_rate_per_connection: usize,
pub bit_rate_per_connection: usize,
/// Configuration of the network service.
pub network_config: NetworkConfiguration,
}
Expand Down Expand Up @@ -82,7 +82,7 @@ where
let (base_protocol_config, events_from_network) =
setup_base_protocol::<TP::Block>(genesis_hash);

let network_rate_limit = network_config.substrate_network_bit_rate_per_connection;
let network_rate_limit = network_config.bit_rate_per_connection;
let rate_limiter = SleepingRateLimiter::new(network_rate_limit);
let transport_builder = |config| transport::build_transport(rate_limiter, config);

Expand Down

0 comments on commit 6b21677

Please sign in to comment.