Skip to content

Commit

Permalink
Update sdk/src/wallet/core/operations/background_syncing.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thoralf-M <[email protected]>
  • Loading branch information
thibault-martinez and Thoralf-M authored Nov 1, 2023
1 parent c2d32cf commit b958150
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdk/src/wallet/core/operations/background_syncing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ where
'outer: loop {
log::debug!("[background_syncing]: syncing wallet");

match wallet.sync(options.clone()).await {
Ok(_) => {}
Err(err) => log::debug!("[background_syncing] error: {}", err),
};
if let Err(err) = wallet.sync(options.clone()).await {
log::debug!("[background_syncing] error: {}", err)
}

// split interval syncing to seconds so stopping the process doesn't have to wait long
let seconds = interval.unwrap_or(DEFAULT_BACKGROUNDSYNCING_INTERVAL).as_secs();
Expand Down

0 comments on commit b958150

Please sign in to comment.