Upgrade to libp2p-0.28. (#7077)

* Upgrade to libp2p-0.28

* Clean up test imports.

* CI

* CI

* CI?

* CI once more.

* One more.

* CI

* CI

* CI
This commit is contained in:
Roman Borschel
2020-09-14 16:27:58 +02:00
committed by GitHub
parent 96901b9662
commit 51706a7620
24 changed files with 181 additions and 268 deletions
+1 -1
View File
@@ -47,6 +47,7 @@ pub fn build_transport(
// Legacy noise configurations for backward compatibility.
let mut noise_legacy = noise::LegacyConfig::default();
noise_legacy.send_legacy_handshake = true;
noise_legacy.recv_legacy_handshake = true;
// Build configuration objects for encryption mechanisms.
let noise_config = {
@@ -76,7 +77,6 @@ pub fn build_transport(
mplex_config.max_buffer_len(usize::MAX);
let mut yamux_config = libp2p::yamux::Config::default();
yamux_config.set_lazy_open(true); // Only set SYN flag on first data frame sent to the remote.
if use_yamux_flow_control {
// Enable proper flow-control: window updates are only sent when