Skip to content

Commit 4a93cf3

Browse files
committed
fix
1 parent da2e8b8 commit 4a93cf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/block_range_scanner.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ impl<N: Network> Service<N> {
440440

441441
self.sync_historical_data(start_block, end_block).await?;
442442

443-
info!("Successfully synced historical data");
443+
_ = self.subscriber.take();
444+
445+
info!("Successfully synced historical data, closing the stream");
444446

445447
Ok(())
446448
}
@@ -543,9 +545,7 @@ impl<N: Network> Service<N> {
543545
}
544546
}
545547

546-
info!(batch_count = batch_count, "Historical sync completed, closing the stream");
547-
548-
_ = self.subscriber.take();
548+
info!(batch_count = batch_count, "Historical sync completed");
549549

550550
Ok(())
551551
}

0 commit comments

Comments
 (0)