From 918909db235ff8a0886a9f74d7ac3b1caec83324 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 1 Nov 2024 11:33:31 +0000 Subject: [PATCH] gui: include last poll for cache refresh interval --- gui/src/app/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gui/src/app/mod.rs b/gui/src/app/mod.rs index 55f86bac..ac9f69cc 100644 --- a/gui/src/app/mod.rs +++ b/gui/src/app/mod.rs @@ -231,16 +231,12 @@ impl App { pub fn subscription(&self) -> Subscription { Subscription::batch(vec![ time::every(Duration::from_secs( - // Note that for now we pass `None` for `last_poll_at_startup`, - // which means the `LatestWalletSync` status will not be returned - // unless the last poll is also `None`. - // TODO: Store last poll at startup and use it here. match sync_status( self.daemon.backend(), self.cache.blockheight, self.cache.sync_progress, self.cache.last_poll_timestamp, - None, + self.cache.last_poll_at_startup, ) { SyncStatus::BlockchainSync(_) => 5, // Only applies to local backends SyncStatus::WalletFullScan