Skip to content

Commit

Permalink
mergem
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Sep 1, 2024
1 parent f6e65ef commit 728ddc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/dojo-world/src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,8 @@ async fn get_events<P: Provider + Send + Sync>(
continuation_token = res.continuation_token;

// if there are no more events or continuation token is missing, break the loop
if continuation_token.is_none() || res.events.is_empty() {
if continuation_token.is_none() {
break;
} else {
events.extend(res.events);
}

// stop when there are no more events being returned
Expand Down

0 comments on commit 728ddc1

Please sign in to comment.