Skip to content

Commit 2172c88

Browse files
committed
refactor(worker_count): 修复 CI
1 parent 7226817 commit 2172c88

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/platform/shard/registry/worker_count.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ def calc_production_worker_count(
7878
try:
7979
raw = json.loads(accounts_path.read_text(encoding="utf-8"))
8080
items = raw.values() if isinstance(raw, dict) else raw
81-
enabled = sum(
82-
1 for v in items if isinstance(v, dict) and v.get("enabled", True)
83-
)
81+
enabled = sum(1 for v in items if isinstance(v, dict) and v.get("enabled", True))
8482
if enabled > 0:
8583
need = max(need, math.ceil(enabled / bots_per))
8684
except (json.JSONDecodeError, OSError, TypeError):

0 commit comments

Comments
 (0)