Update networking code to libp2p 0.14 (#4383)

* Entirely update substrate-telemetry to futures 0.3

* Add a Closed error

* Update to libp2p 0.14

* More work

* More work

* More work

* More work

* Fix warnings

* Remove unwrap()

* Work on tests fixing

* Fix network tests

* Fix external network tests

* Update libp2p and restore Yamux in discovery test

* Ignore DNS if initializatio nfails

* Restore variables ordering

* Forgot browser-utils

* Fix downfall after merge

* Fix tests
This commit is contained in:
Pierre Krieger
2020-01-09 19:01:23 +01:00
committed by Gavin Wood
parent 6e572a9477
commit ca997cf1e4
29 changed files with 842 additions and 812 deletions
+4 -5
View File
@@ -6,18 +6,17 @@ description = "Telemetry utils"
edition = "2018"
[dependencies]
bytes = "0.4.12"
bytes = "0.5"
parking_lot = "0.9.0"
futures01 = { package = "futures", version = "0.1" }
futures = { version = "0.3.1", features = ["compat"] }
futures = "0.3.1"
futures-timer = "2.0.0"
libp2p = { version = "0.13.2", default-features = false, features = ["libp2p-websocket"] }
libp2p = { version = "0.14.0-alpha.1", default-features = false, features = ["libp2p-websocket"] }
log = "0.4.8"
pin-project = "0.4.6"
rand = "0.7.2"
serde = { version = "1.0.101", features = ["derive"] }
slog = { version = "2.5.2", features = ["nested-values"] }
slog-json = { version = "2.3.0", features = ["nested-values"] }
slog-scope = "4.1.2"
tokio-io = "0.1.12"
take_mut = "0.2.2"
void = "1.0.2"