Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Dec 4, 2024
1 parent 4a3ba52 commit 7572044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/data_layer/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ async def get_existing_hashes(self, node_hashes: list[bytes32], store_id: bytes3
batch_size = min(500, SQLITE_MAX_VARIABLE_NUMBER - 10)

for i in range(0, len(node_hashes), batch_size):
chunk = node_hashes[i:i + batch_size]
chunk = node_hashes[i : i + batch_size]
placeholders = ",".join(["?"] * len(chunk))
query = f"SELECT hash FROM nodes WHERE store_id = ? AND hash IN ({placeholders})"
async with self.db_wrapper.reader() as reader:
Expand Down

0 comments on commit 7572044

Please sign in to comment.