Skip to content

Commit

Permalink
stop fetching when cursor is none
Browse files Browse the repository at this point in the history
  • Loading branch information
lostman committed Aug 28, 2023
1 parent 52cfe6c commit bad76f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fuel-indexer/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl IndexerService {
fuel_core_client::client::FuelClient::new(client_uri.to_string())
.unwrap_or_else(|e| panic!("Client node connection failed: {e}."));

loop {
while cursor.is_some() {
info!("Block fetcher: cursor {:?}", cursor);
// Fetch the next page of blocks, and the starting cursor for the subsequent page
let (block_info, next_cursor, _has_next_page) =
Expand Down

0 comments on commit bad76f5

Please sign in to comment.