Update to libp2p 0.9.1 (#2804)

This commit is contained in:
Pierre Krieger
2019-06-06 11:50:22 +02:00
committed by Bastian Köcher
parent b8c9558419
commit e18dc6d53c
3 changed files with 33 additions and 35 deletions
@@ -68,9 +68,7 @@ pub fn build_transport(
.map(|(id, muxer)| (id, core::muxing::StreamMuxerBox::new(muxer)))
})
.with_timeout(Duration::from_secs(20))
// TODO: pass the error directly, instead of calling `to_string()`
// https://github.com/libp2p/rust-libp2p/issues/1162
.map_err(|err| io::Error::new(io::ErrorKind::Other, err.to_string()))
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
.boxed();
(transport, sinks)