mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-11 00:44:22 -05:00
Update rpc.rs
This commit is contained in:
parent
88a5870961
commit
008596aa1b
@ -45,7 +45,7 @@ pub async fn start_server() {
|
|||||||
let (ctx, mut request) = initialize_context().await;
|
let (ctx, mut request) = initialize_context().await;
|
||||||
let move_ctx = Arc::clone(&ctx);
|
let move_ctx = Arc::clone(&ctx);
|
||||||
tokio::spawn(async move {
|
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;
|
tokio::time::sleep(Duration::from_secs(3)).await;
|
||||||
ctx.shutdown.send(());
|
ctx.shutdown.send(());
|
||||||
|
Loading…
Reference in New Issue
Block a user