added awaits
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
02580097de
commit
b7eda83e1b
|
@ -19,7 +19,9 @@ pub async fn loop_blocking(mango_client: Arc<MangoClient>, pk: Pubkey, perp_mark
|
||||||
let client = mango_client.clone();
|
let client = mango_client.clone();
|
||||||
tokio::task::spawn_blocking(move || {
|
tokio::task::spawn_blocking(move || {
|
||||||
perform_operation(client, pk, perp_market).expect("Something went wrong here...");
|
perform_operation(client, pk, perp_market).expect("Something went wrong here...");
|
||||||
});
|
})
|
||||||
|
.await
|
||||||
|
.expect("Something went wrong here...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,9 @@ pub async fn loop_blocking(mango_client: Arc<MangoClient>, pk: Pubkey, bank: Ban
|
||||||
let client = mango_client.clone();
|
let client = mango_client.clone();
|
||||||
tokio::task::spawn_blocking(move || {
|
tokio::task::spawn_blocking(move || {
|
||||||
perform_operation(client, pk, bank).expect("Something went wrong here...");
|
perform_operation(client, pk, bank).expect("Something went wrong here...");
|
||||||
});
|
})
|
||||||
|
.await
|
||||||
|
.expect("Something went wrong here...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue