mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-25 20:10:50 -04:00
Update pushers by app id and pushkey, not user id and pushkey
This commit is contained in:
parent
be26697b29
commit
8d5cce62ab
2 changed files with 12 additions and 12 deletions
|
@ -237,7 +237,7 @@ class Pusher(object):
|
|||
self.user_name, config, timeout=0)
|
||||
self.last_token = chunk['end']
|
||||
self.store.update_pusher_last_token(
|
||||
self.user_name, self.pushkey, self.last_token)
|
||||
self.app_id, self.pushkey, self.last_token)
|
||||
logger.info("Pusher %s for user %s starting from token %s",
|
||||
self.pushkey, self.user_name, self.last_token)
|
||||
|
||||
|
@ -308,7 +308,7 @@ class Pusher(object):
|
|||
self.backoff_delay = Pusher.INITIAL_BACKOFF
|
||||
self.last_token = chunk['end']
|
||||
self.store.update_pusher_last_token_and_success(
|
||||
self.user_name,
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
self.last_token,
|
||||
self.clock.time_msec()
|
||||
|
@ -316,14 +316,14 @@ class Pusher(object):
|
|||
if self.failing_since:
|
||||
self.failing_since = None
|
||||
self.store.update_pusher_failing_since(
|
||||
self.user_name,
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
self.failing_since)
|
||||
else:
|
||||
if not self.failing_since:
|
||||
self.failing_since = self.clock.time_msec()
|
||||
self.store.update_pusher_failing_since(
|
||||
self.user_name,
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
self.failing_since
|
||||
)
|
||||
|
@ -340,14 +340,14 @@ class Pusher(object):
|
|||
self.backoff_delay = Pusher.INITIAL_BACKOFF
|
||||
self.last_token = chunk['end']
|
||||
self.store.update_pusher_last_token(
|
||||
self.user_name,
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
self.last_token
|
||||
)
|
||||
|
||||
self.failing_since = None
|
||||
self.store.update_pusher_failing_since(
|
||||
self.user_name,
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
self.failing_since
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue