mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-05 18:14:39 -04:00
Store the 'last_token' in the db, even if we processed no events
This commit is contained in:
parent
a45ec7c651
commit
78fa346b07
1 changed files with 6 additions and 0 deletions
|
@ -294,6 +294,12 @@ class Pusher(object):
|
||||||
if not single_event:
|
if not single_event:
|
||||||
self.last_token = chunk['end']
|
self.last_token = chunk['end']
|
||||||
logger.debug("Event stream timeout for pushkey %s", self.pushkey)
|
logger.debug("Event stream timeout for pushkey %s", self.pushkey)
|
||||||
|
yield self.store.update_pusher_last_token(
|
||||||
|
self.app_id,
|
||||||
|
self.pushkey,
|
||||||
|
self.user_name,
|
||||||
|
self.last_token
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not self.alive:
|
if not self.alive:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue