Skip to content

Commit

Permalink
tokio 1.0 sleep -> tokio 0.2 delay_for
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed May 13, 2024
1 parent b763ecc commit 5b6f2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coins/btc/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl BtcRpc {
}

pub async fn get_spendable(&self, address: &str) -> anyhow::Result<Vec<UnspentInputResponse>> {
tokio::time::sleep(core::time::Duration::from_secs(10)).await;
tokio::time::delay_for(core::time::Duration::from_secs(10)).await;
self.rpc_call("getaddressunspent", &[address]).await
}

Expand Down

0 comments on commit 5b6f2dd

Please sign in to comment.