Skip to content

Commit 5b0cd94

Browse files
author
Richard Kuo (Onyx)
committed
better var name
1 parent b0800bf commit 5b0cd94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/onyx/onyxbot/slack/listener.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,23 @@ def acquire_tenants(self) -> None:
264264
- If a tenant in self.tenant_ids no longer has Slack bots, remove it (and release the lock in this scope).
265265
"""
266266

267+
token: Token[str | None]
268+
267269
# tenants that are disabled (e.g. their trial is over and haven't subscribed)
268270
# for non-cloud, this will return an empty set
269271
gated_tenants = fetch_ee_implementation_or_noop(
270272
"onyx.server.tenants.product_gating",
271273
"get_gated_tenants",
272274
set(),
273275
)()
274-
all_tenants = [
276+
all_active_tenants = [
275277
tenant_id
276278
for tenant_id in get_all_tenant_ids()
277279
if tenant_id not in gated_tenants
278280
]
279281

280-
token: Token[str | None]
281-
282282
# 1) Try to acquire locks for new tenants
283-
for tenant_id in all_tenants:
283+
for tenant_id in all_active_tenants:
284284
if (
285285
DISALLOWED_SLACK_BOT_TENANT_LIST is not None
286286
and tenant_id in DISALLOWED_SLACK_BOT_TENANT_LIST

0 commit comments

Comments
 (0)