mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11:34 +00:00
Merge the changes from polkadot-2 into master (#446)
This commit is contained in:
committed by
Benjamin Kampmann
parent
35e005879b
commit
f787c80a42
@ -68,7 +68,9 @@ fn main() {
|
||||
// `Transport` because the output of the upgrade is not a stream but a controller for
|
||||
// muxing. We have to explicitly call `into_connection_reuse()` in order to turn this into
|
||||
// a `Transport`.
|
||||
.into_connection_reuse();
|
||||
.map(|val, _| ((), val))
|
||||
.into_connection_reuse()
|
||||
.map(|((), val), _| val);
|
||||
|
||||
// Let's put this `transport` into a *swarm*. The swarm will handle all the incoming
|
||||
// connections for us. The second parameter we pass is the connection upgrade that is accepted
|
||||
|
Reference in New Issue
Block a user