From 398df2752ed8db26bc99af827347d54f397474dd Mon Sep 17 00:00:00 2001 From: jreadey Date: Fri, 29 Mar 2024 08:30:54 -0700 Subject: [PATCH] fix modulo check --- hsds/util/fileClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsds/util/fileClient.py b/hsds/util/fileClient.py index 450bccb7..61fe3690 100644 --- a/hsds/util/fileClient.py +++ b/hsds/util/fileClient.py @@ -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