Merge the changes from polkadot-2 into master (#446)

This commit is contained in:
Pierre Krieger
2018-09-03 16:46:15 +02:00
committed by Benjamin Kampmann
parent 35e005879b
commit f787c80a42
10 changed files with 674 additions and 277 deletions

View File

@ -75,7 +75,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);
// Building a struct that represents the protocol that we are going to use for dialing.
let proto = SimpleProtocol::new("/echo/1.0.0", |socket| {