Skip to content

Commit 3911d93

Browse files
format
1 parent 2eea2b3 commit 3911d93

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/chain/mod.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,18 @@ impl ChainSource {
212212
let onchain_wallet_sync_interval_secs = background_sync_config
213213
.onchain_wallet_sync_interval_secs
214214
.max(WALLET_SYNC_INTERVAL_MINIMUM_SECS);
215-
let mut onchain_wallet_sync_interval =
216-
tokio::time::interval(Duration::from_secs(onchain_wallet_sync_interval_secs));
215+
let mut onchain_wallet_sync_interval = tokio::time::interval(
216+
Duration::from_secs(onchain_wallet_sync_interval_secs),
217+
);
217218
onchain_wallet_sync_interval
218219
.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
219220

220221
let fee_rate_cache_update_interval_secs = background_sync_config
221222
.fee_rate_cache_update_interval_secs
222223
.max(WALLET_SYNC_INTERVAL_MINIMUM_SECS);
223-
let mut fee_rate_update_interval =
224-
tokio::time::interval(Duration::from_secs(fee_rate_cache_update_interval_secs));
224+
let mut fee_rate_update_interval = tokio::time::interval(Duration::from_secs(
225+
fee_rate_cache_update_interval_secs,
226+
));
225227
// When starting up, we just blocked on updating, so skip the first tick.
226228
fee_rate_update_interval.reset();
227229
fee_rate_update_interval
@@ -230,13 +232,14 @@ impl ChainSource {
230232
let lightning_wallet_sync_interval_secs = background_sync_config
231233
.lightning_wallet_sync_interval_secs
232234
.max(WALLET_SYNC_INTERVAL_MINIMUM_SECS);
233-
let mut lightning_wallet_sync_interval =
234-
tokio::time::interval(Duration::from_secs(lightning_wallet_sync_interval_secs));
235+
let mut lightning_wallet_sync_interval = tokio::time::interval(
236+
Duration::from_secs(lightning_wallet_sync_interval_secs),
237+
);
235238
lightning_wallet_sync_interval
236239
.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
237240

238241
// Start the syncing loop.
239-
loop {
242+
loop {
240243
tokio::select! {
241244
_ = stop_sync_receiver.changed() => {
242245
log_trace!(

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ impl Default for BackgroundSyncConfig {
325325
/// `BackgroundSyncConfig`.
326326
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
327327
pub struct EsploraSyncConfig {
328-
/// Background sync configuration.
329-
///
328+
/// Background sync configuration.
329+
///
330330
/// If set to `None`, background syncing will be disabled. Users will need to manually
331331
/// sync via `Node::sync_wallets` for the wallets and fee rate updates.
332332
///

0 commit comments

Comments
 (0)