mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Don't Arc the AtomicU32
We never clone this type, there is no need to wrap it in an `Arc`.
This commit is contained in:
parent
40dcf0355a
commit
a0e7c6ecf7
@ -12,11 +12,7 @@ use monero_rpc::{
|
|||||||
wallet,
|
wallet,
|
||||||
wallet::{BlockHeight, Refreshed},
|
wallet::{BlockHeight, Refreshed},
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{str::FromStr, sync::atomic::Ordering, time::Duration};
|
||||||
str::FromStr,
|
|
||||||
sync::{atomic::Ordering, Arc},
|
|
||||||
time::Duration,
|
|
||||||
};
|
|
||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
@ -201,7 +197,7 @@ impl WatchForTransfer for Wallet {
|
|||||||
|
|
||||||
let address = Address::standard(self.network, public_spend_key, public_view_key.into());
|
let address = Address::standard(self.network, public_spend_key, public_view_key.into());
|
||||||
|
|
||||||
let confirmations = Arc::new(AtomicU32::new(0u32));
|
let confirmations = AtomicU32::new(0u32);
|
||||||
|
|
||||||
let res = retry(ConstantBackoff::new(Duration::from_secs(1)), || async {
|
let res = retry(ConstantBackoff::new(Duration::from_secs(1)), || async {
|
||||||
// NOTE: Currently, this is conflicting IO errors with the transaction not being
|
// NOTE: Currently, this is conflicting IO errors with the transaction not being
|
||||||
|
Loading…
Reference in New Issue
Block a user