mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 03:31:10 +00:00
Update to libp2p 0.9.1 (#2804)
This commit is contained in:
committed by
Bastian Köcher
parent
b8c9558419
commit
e18dc6d53c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user