From 2fe5756ed9ec2a8b8a242908a942eb6dfddd6249 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Mon, 8 Jan 2024 17:09:07 +0100 Subject: [PATCH] ooops --- sdk/src/wallet/core/operations/background_syncing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/wallet/core/operations/background_syncing.rs b/sdk/src/wallet/core/operations/background_syncing.rs index 4b9015a09b..7328441fef 100644 --- a/sdk/src/wallet/core/operations/background_syncing.rs +++ b/sdk/src/wallet/core/operations/background_syncing.rs @@ -55,11 +55,11 @@ where loop { log::debug!("[background_syncing]: syncing wallet"); - if let Err(err) = wallet.sync(interval_seconds.clone()).await { + if let Err(err) = wallet.sync(options.clone()).await { log::debug!("[background_syncing] error: {}", err) } - let res = timeout(seconds, async { + let res = timeout(interval_seconds, async { rx_background_sync .wait_for(|status| *status == BackgroundSyncStatus::Stopping) .await