Update rpc.rs

This commit is contained in:
binarybaron 2022-12-09 23:38:17 +01:00
parent 88a5870961
commit 008596aa1b

View File

@ -45,7 +45,7 @@ pub async fn start_server() {
let (ctx, mut request) = initialize_context().await;
let move_ctx = Arc::clone(&ctx);
tokio::spawn(async move {
request.call(Arc::clone(move_ctx)).await;
request.call(Arc::clone(&move_ctx)).await;
});
tokio::time::sleep(Duration::from_secs(3)).await;
ctx.shutdown.send(());