mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-11 11:55:00 -05:00
Merge remote-tracking branch 'origin/develop' into neilj/fix_reap_users_in_postgres
This commit is contained in:
commit
591bf87c6a
56 changed files with 404 additions and 292 deletions
|
|
@ -96,6 +96,11 @@ class ClientIpStore(background_updates.BackgroundUpdateStore):
|
|||
self._batch_row_update[key] = (user_agent, device_id, now)
|
||||
|
||||
def _update_client_ips_batch(self):
|
||||
|
||||
# If the DB pool has already terminated, don't try updating
|
||||
if not self.hs.get_db_pool().running:
|
||||
return
|
||||
|
||||
def update():
|
||||
to_update = self._batch_row_update
|
||||
self._batch_row_update = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue