Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
remove early return in query
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgrakkurt committed Feb 22, 2023
1 parent 098b273 commit cc35d54
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions worker/src/data_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,6 @@ impl DataCtx {
to: to_block,
};

if logs.is_empty() && transactions.is_empty() && !query.include_all_blocks {
// early return if there are no queries

if !serialize_task.send((QueryResult { data: Vec::new() }, block_range)) {
return Ok(serialize_task);
}

continue;
}

let mini_query = MiniQuery {
from_block,
to_block,
Expand Down

0 comments on commit cc35d54

Please sign in to comment.