diff --git a/crates/subspace-networking/src/constructor.rs b/crates/subspace-networking/src/constructor.rs index 8503379367..eb14e17acb 100644 --- a/crates/subspace-networking/src/constructor.rs +++ b/crates/subspace-networking/src/constructor.rs @@ -81,8 +81,6 @@ const DIALING_INTERVAL_IN_SECS: Duration = Duration::from_secs(1); /// Defines a replication factor for Kademlia on get_record operation. /// "Good citizen" supports the network health. const YAMUX_MAX_STREAMS: usize = 256; -/// 1MB of piece + original value (256 KB) -const YAMUX_RECEIVING_WINDOW: usize = Piece::SIZE + 256 * 1024; /// Max confidence for autonat protocol. Could affect Kademlia mode change. pub(crate) const AUTONAT_MAX_CONFIDENCE: usize = 3; @@ -304,9 +302,6 @@ where let mut yamux_config = YamuxConfig::default(); yamux_config.set_max_num_streams(YAMUX_MAX_STREAMS); - // TODO: Replace when new API is available like deprecation message says - #[allow(deprecated)] - yamux_config.set_receive_window_size(YAMUX_RECEIVING_WINDOW as u32); let gossipsub = ENABLE_GOSSIP_PROTOCOL.then(|| { GossipsubConfigBuilder::default()