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 ac25b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ pub fn new_authority(
let import_queue_handle = BlockImporter::new(service_components.import_queue.service());
let rate_limiter_config = get_rate_limit_config(&aleph_config);
let network_config = finality_aleph::SubstrateNetworkConfig {
substrate_network_bit_rate_per_connection: rate_limiter_config
bit_rate_per_connection: rate_limiter_config
.substrate_network_bit_rate_per_connection,
network_config: config.network.clone(),
};
Expand Down
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 ac25b7d

Please sign in to comment.