Skip to content

Commit

Permalink
fix: addressed pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed May 29, 2024
1 parent 4707ada commit 8f2704a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/near_lake_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def start(config: LakeConfig, streamer_messages_queue: asyncio.Queue):
await asyncio.sleep(2)
continue

logger.info(f"Received {len(block_heights_prefixes)} blocks from S3")
logger.info("Received %d blocks from S3", len(block_heights_prefixes))

pending_block_heights = iter(block_heights_prefixes)
streamer_messages_futures = []
Expand All @@ -117,7 +117,8 @@ async def start(config: LakeConfig, streamer_messages_queue: asyncio.Queue):
!= streamer_message.block.header.prev_hash
):
logger.warning(
"`prev_hash` does not match, re-fetching the data from S3 in 200ms: %s != %s",
"`prev_hash` does not match, re-fetching the data from S3 in 200ms: "
"%s != %s",
last_processed_block_hash,
streamer_message.block.header.prev_hash,
)
Expand Down

0 comments on commit 8f2704a

Please sign in to comment.