Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed May 27, 2024
1 parent 5b1f62c commit 9303c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def insert_batch(valid_report_queue: Queue):
await asyncio.sleep(1)
continue

if time.time() - last_time < INSERT_INTERVAL_SEC or batch > 10_000:
if time.time() - last_time < INSERT_INTERVAL_SEC or len(batch) > 10_000:
await asyncio.sleep(1)
continue

Expand Down

0 comments on commit 9303c7d

Please sign in to comment.