Skip to content

Commit

Permalink
fix: make progress on error
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 17, 2025
1 parent c4a66c1 commit addda92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/data_state_retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ impl<T, E: ErrorBounds> DataStateRetry<T, E> {
if ui.button("Stop Trying").clicked() {
self.attempts_left = 0;
}
let can_make_progress = self.start_or_poll(fetch_fn);
debug_assert!(
can_make_progress.is_able_to_make_progress(),
"This should be able to make progress"
);
}
CanMakeProgress::AbleToMakeProgress
}
Expand Down

0 comments on commit addda92

Please sign in to comment.