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

[DNM] Expose yamux_window_size option to CLI #14739

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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