Process runtime api requests in the background (#2035)

This pr changes how the runtime api subsystem processes runtime api
requests. Instead of answering all of them in the subsystem task and
thus, making all requests sequential, we now answer them in a background
task. This enables us to serve multiple requests at once.
This commit is contained in:
Bastian Köcher
2020-11-30 11:41:47 +01:00
committed by GitHub
parent f2606dbd4b
commit 9ce186227c
5 changed files with 64 additions and 44 deletions
@@ -9,6 +9,7 @@ futures = "0.3.8"
tracing = "0.1.22"
tracing-futures = "0.2.4"
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" }