mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-30 16:31:57 +00:00
yamux 0.10.1, set_split_send_size
This commit is contained in:
@@ -15,4 +15,4 @@ futures = "0.3.1"
|
||||
libp2p-core = { version = "0.32.0", path = "../../core", default-features = false }
|
||||
parking_lot = "0.12"
|
||||
thiserror = "1.0"
|
||||
yamux = "0.10.0"
|
||||
yamux = "0.10.1"
|
||||
|
@@ -290,6 +290,13 @@ impl YamuxConfig {
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the max. payload size used when sending data frames. Payloads larger
|
||||
/// than the configured max. will be split.
|
||||
pub fn set_split_send_size(&mut self, n: usize) -> &mut Self {
|
||||
self.inner.set_split_send_size(n);
|
||||
self
|
||||
}
|
||||
|
||||
/// Converts the config into a [`YamuxLocalConfig`] for use with upgrades
|
||||
/// of I/O streams that are ![`Send`].
|
||||
pub fn into_local(self) -> YamuxLocalConfig {
|
||||
|
Reference in New Issue
Block a user