Convert SyncingEngine::run to use tokio::select! instead of polling (#2132)

This commit is contained in:
Dmitry Markin
2023-11-03 17:10:24 +02:00
committed by GitHub
parent 8dc41ba49d
commit d512b3f00b
4 changed files with 241 additions and 220 deletions
+1
View File
@@ -30,6 +30,7 @@ schnellru = "0.2.1"
smallvec = "1.11.0"
thiserror = "1.0"
tokio-stream = "0.1.14"
tokio = { version = "1.32.0", features = ["time", "macros"] }
fork-tree = { path = "../../../utils/fork-tree" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus" }
sc-client-api = { path = "../../api" }