Skip to content

Commit

Permalink
优化功能&修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
z-mio committed Jan 15, 2024
1 parent 2b99ea4 commit 886171d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/cloudflare/storage_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ async def manage_storage(dc, node, status_code, available_nodes) -> str:
# 筛选出可用节点
async def returns_the_available_nodes(results) -> list:
"""
筛选出可用节点,移除已用节点(如果包括已用节点,存储会全部变成一个代理节点,就无法负载均衡了)
筛选出可用节点,移除已用节点
:param results:
:return:
"""
Expand All @@ -225,8 +225,8 @@ async def returns_the_available_nodes(results) -> list:
for node in sl["data"]["content"]
if node["webdav_policy"] == "use_proxy_url" or node["web_proxy"]
]
# 将已用的节点从可用节点中删除
return [x for x in node_pool if x not in used_node]
# 将已用的节点从可用节点中删除,删除后没有节点了就重复使用节点
return [x for x in node_pool if x not in used_node] or node_pool


# 发送节点状态
Expand Down

0 comments on commit 886171d

Please sign in to comment.