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);
// We now have a `transport` variable that can be used either to dial nodes or listen to
// incoming connections, and that will automatically apply secio and multiplex on top