Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Feb 4, 2024
1 parent ecf1040 commit 8c6af94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dipdup/indexes/evm_subsquid_events/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ async def _synchronize(self, sync_level: int) -> None:
topics.add(self.topics[typename][handler.name])

# NOTE: Requesting logs by batches of datasource_config.http.batch_size or NODE_BATCH_SIZE.
batch_size = self.random_node._http_config.batch_size
evm_node: EvmNodeDatasource = self.random_node
if evm_node._http_config:
batch_size = evm_node._http_config.batch_size
else:
batch_size = NODE_BATCH_SIZE

batch_first_level = first_level
while batch_first_level <= sync_level:
# NOTE: We need block timestamps for each level, so fetch them separately and match with logs.
Expand Down

0 comments on commit 8c6af94

Please sign in to comment.