Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Expose yamux_window_size option to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 24, 2023
1 parent 500562e commit a4571a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/cli/src/params/network_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ pub struct NetworkParams {
/// and observe block requests timing out.
#[arg(long, value_name = "COUNT", default_value_t = 64)]
pub max_blocks_per_request: u32,

/// Maximum receive window size for libp2p connections. If this is not specified
/// the default value is used that is 256KiB.
#[arg(long, value_name = "BYTES")]
pub yamux_window_size: Option<u32>,
}

impl NetworkParams {
Expand Down Expand Up @@ -241,7 +246,7 @@ impl NetworkParams {
allow_non_globals_in_dht,
kademlia_disjoint_query_paths: self.kademlia_disjoint_query_paths,
kademlia_replication_factor: self.kademlia_replication_factor,
yamux_window_size: None,
yamux_window_size: self.yamux_window_size,
ipfs_server: self.ipfs_server,
sync_mode: self.sync.into(),
}
Expand Down

0 comments on commit a4571a9

Please sign in to comment.