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
+1 -1
View File
@@ -12,7 +12,7 @@ byteorder = "1.3"
bytes = "0.4"
fnv = "1.0"
futures = "0.1"
libp2p = { version = "0.9.0", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
libp2p = { version = "0.9.1", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
parking_lot = "0.8.0"
lazy_static = "1.2"
log = "0.4"
@@ -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)