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 authored and GitHub committed 2020-11-30 10:41:47 +00:00
1 parent f2606dbd4b
commit 9ce186227c
5 files changed
+64 -44

No files matched your search

+1
View File
@@ -406,6 +406,7 @@ where
runtime_api: RuntimeApiSubsystem::new(
runtime_client,
Metrics::register(registry)?,
spawner.clone(),
),
statement_distribution: StatementDistributionSubsystem::new(
Metrics::register(registry)?,