Skip to content

Commit

Permalink
gui: include last poll for cache refresh interval
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Nov 1, 2024
1 parent c915970 commit 918909d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gui/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,12 @@ impl App {
pub fn subscription(&self) -> Subscription<Message> {
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
Expand Down

0 comments on commit 918909d

Please sign in to comment.