We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4e90a commit cb713e5Copy full SHA for cb713e5
crates/esplora/src/async_ext.rs
@@ -259,7 +259,13 @@ impl EsploraAsyncExt for esplora_client::AsyncClient {
259
}
260
261
262
- if last_index > last_active_index.map(|i| i.saturating_add(stop_gap as u32)) {
+ let last_index = last_index.expect("Must be set since handles wasn't empty.");
263
+ let past_gap_limit = if let Some(i) = last_active_index {
264
+ last_index > i.saturating_add(stop_gap as u32)
265
+ } else {
266
+ last_index >= stop_gap as u32
267
+ };
268
+ if past_gap_limit {
269
break;
270
271
0 commit comments