Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Nov 13, 2023
1 parent 3d1b764 commit 27c7d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dipdup/indexes/evm_subsquid_events/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def _synchronize(self, sync_level: int) -> None:
typename = handler.contract.module_name
topics.add(self.topics[typename][handler.name])

# Requesting blocks info by batch
# NOTE: Requesting logs by batches of NODE_BATCH_SIZE.
batch_first_level = first_level
while batch_first_level <= sync_level:
batch_last_level = min(batch_first_level + NODE_BATCH_SIZE, sync_level)
Expand Down Expand Up @@ -187,7 +187,7 @@ async def _synchronize(self, sync_level: int) -> None:
await self._process_level_events(parsed_level_logs, sync_level)
if self._config.expose_metrics:
Metrics.set_sqd_processor_last_block(level)

batch_first_level = batch_last_level + 1
else:
sync_level = min(sync_level, subsquid_sync_level)
Expand Down

0 comments on commit 27c7d66

Please sign in to comment.