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

Commit a4571a9

Browse files
committed
Expose yamux_window_size option to CLI
1 parent 500562e commit a4571a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: client/cli/src/params/network_params.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ pub struct NetworkParams {
149149
/// and observe block requests timing out.
150150
#[arg(long, value_name = "COUNT", default_value_t = 64)]
151151
pub max_blocks_per_request: u32,
152+
153+
/// Maximum receive window size for libp2p connections. If this is not specified
154+
/// the default value is used that is 256KiB.
155+
#[arg(long, value_name = "BYTES")]
156+
pub yamux_window_size: Option<u32>,
152157
}
153158

154159
impl NetworkParams {
@@ -241,7 +246,7 @@ impl NetworkParams {
241246
allow_non_globals_in_dht,
242247
kademlia_disjoint_query_paths: self.kademlia_disjoint_query_paths,
243248
kademlia_replication_factor: self.kademlia_replication_factor,
244-
yamux_window_size: None,
249+
yamux_window_size: self.yamux_window_size,
245250
ipfs_server: self.ipfs_server,
246251
sync_mode: self.sync.into(),
247252
}

0 commit comments

Comments
 (0)