Skip to content

Commit

Permalink
typo in synchronize
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Feb 5, 2024
1 parent f03ebd1 commit 7cdefd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dipdup/indexes/evm_subsquid_events/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async def _fetch_timestamp(level: int, timestamps: dict[int, int]) -> None:

level = batch_last_level
level_logs = await level_logs_task
for level in [int(log['blockNumber'], 16) for log in level_logs]:
for level in {int(log['blockNumber'], 16) for log in level_logs}:
tasks.append(
asyncio.create_task(
_fetch_timestamp(level, timestamps),
Expand All @@ -198,7 +198,6 @@ async def _fetch_timestamp(level: int, timestamps: dict[int, int]) -> None:
Metrics.set_sqd_processor_last_block(level)

batch_first_level = batch_last_level + 1
await asyncio.sleep(evm_node._http_config.ratelimit_sleep)
else:
sync_level = min(sync_level, subsquid_sync_level)
fetcher = self._create_fetcher(first_level, sync_level)
Expand Down

0 comments on commit 7cdefd3

Please sign in to comment.