We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 430c3cf + 7182665 commit a099125Copy full SHA for a099125
mautrix_telegram/__main__.py
@@ -145,7 +145,7 @@ async def _update_active_puppet_metric(self) -> None:
145
146
block_on_limit_reached = self.config['bridge.limits.block_on_limit_reached']
147
max_puppet_limit = self.config['bridge.limits.max_puppet_limit']
148
- if block_on_limit_reached is not None and max_puppet_limit is not None:
+ if block_on_limit_reached and max_puppet_limit is not None:
149
self.is_blocked = max_puppet_limit < active_users
150
METRIC_BLOCKING.set(int(self.is_blocked))
151
self.log.debug(f"Current active puppet count is {active_users}")
0 commit comments