Skip to content

Commit

Permalink
Affect /live endpoint instead of /ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Paul committed Nov 29, 2021
1 parent 9b12d86 commit e8cff50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mautrix_telegram/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ async def count_logged_in_users(self) -> int:
def update_bridge_readiness(self):
for portal in Portal.all():
if portal.latest_event_timestamp and portal.latest_event_timestamp < time() - PORTAL_INACTIVE_THRESHOLD:
self.az.ready = False
self.az.live = False
return
self.az.ready = True
self.az.live = True

async def _update_active_puppet_metric(self) -> None:
active_users = UserActivity.get_active_count(
Expand Down

0 comments on commit e8cff50

Please sign in to comment.