added awaits

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-05-10 08:44:50 +02:00
parent 02580097de
commit b7eda83e1b
2 changed files with 6 additions and 2 deletions

View File

@ -19,7 +19,9 @@ pub async fn loop_blocking(mango_client: Arc<MangoClient>, pk: Pubkey, perp_mark
let client = mango_client.clone();
tokio::task::spawn_blocking(move || {
perform_operation(client, pk, perp_market).expect("Something went wrong here...");
});
})
.await
.expect("Something went wrong here...");
}
}

View File

@ -14,7 +14,9 @@ pub async fn loop_blocking(mango_client: Arc<MangoClient>, pk: Pubkey, bank: Ban
let client = mango_client.clone();
tokio::task::spawn_blocking(move || {
perform_operation(client, pk, bank).expect("Something went wrong here...");
});
})
.await
.expect("Something went wrong here...");
}
}