Skip to content

Commit

Permalink
fix modulo check
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Mar 29, 2024
1 parent c87fa68 commit 398df27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/util/fileClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ async def list_keys(
files.append(filename)
if limit and len(files) >= limit:
break
if len(files) % 1000:
if len(files) % 1000 == 0:
await asyncio.sleep(0)
break # don't recurse into subdirs

Expand Down

0 comments on commit 398df27

Please sign in to comment.