Skip to content

Commit 36073d0

Browse files
committed
refactor based on mammals follow up comment
1 parent 35538e2 commit 36073d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/esplora/src/async_ext.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ where
316316
let mut update = TxUpdate::<ConfirmationBlockTime>::default();
317317
let mut last_active_index = Option::<u32>::None;
318318
let mut consecutive_unused = 0usize;
319-
let mut processed_any = false;
320319
let gap_limit = stop_gap.max(1);
321320

322321
loop {
@@ -350,14 +349,10 @@ where
350349
.collect::<FuturesOrdered<_>>();
351350

352351
if handles.is_empty() {
353-
if !processed_any {
354-
return Err(Box::new(esplora_client::Error::InvalidResponse));
355-
}
356352
break;
357353
}
358354

359355
for (index, txs, evicted) in handles.try_collect::<Vec<TxsOfSpkIndex>>().await? {
360-
processed_any = true;
361356
if txs.is_empty() {
362357
consecutive_unused = consecutive_unused.saturating_add(1);
363358
} else {

0 commit comments

Comments
 (0)