yamux 0.10.1, set_split_send_size

This commit is contained in:
folex
2022-04-06 12:27:35 +04:00
parent f26adbcd84
commit d40622b9b9
2 changed files with 8 additions and 1 deletions

View File

@@ -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"

View File

@@ -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 {