Skip to content

Commit c03647d

Browse files
committed
fix: 修复可用存储导致读取文件列表数量增多的问题
1 parent 87113df commit c03647d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def _check_available(self):
5656
CHECK_FILE_CONTENT.encode("utf-8"),
5757
CHECK_FILE.mtime
5858
)
59-
if await storage.get_size(CHECK_FILE_MD5) == len(CHECK_FILE_CONTENT):
59+
if await storage.get_size(CHECK_FILE_MD5) == len(CHECK_FILE_CONTENT) and storage not in self.available_storages:
6060
self.available_storages.append(storage)
6161
if len(self.available_storages) > 0:
6262
self.check_available.release()

0 commit comments

Comments
 (0)