initiating swaps in a separate task and handling shutdown signals with broadcast queues

This commit is contained in:
Lorenzo Tucci 2023-08-14 11:21:04 +02:00
parent 63c1edbdd3
commit 6a9f72a857
5 changed files with 87 additions and 84 deletions

View file

@ -164,7 +164,7 @@ async fn execute_request(
params: Params,
context: &Arc<Context>,
) -> Result<serde_json::Value, jsonrpsee_core::Error> {
let mut request = Request::new(context.shutdown.subscribe(), cmd, params);
let mut request = Request::new(cmd, params);
request
.call(Arc::clone(context))
.await