mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP pokes work or not yet but the retry semantics are pretty good.
This commit is contained in:
parent
58f82e2e54
commit
eb6aedf92c
7 changed files with 150 additions and 20 deletions
|
@ -45,7 +45,9 @@ class PusherPool:
|
|||
"device_display_name": device_display_name,
|
||||
"pushkey": pushkey,
|
||||
"data": data,
|
||||
"last_token": None
|
||||
"last_token": None,
|
||||
"last_success": None,
|
||||
"failing_since": None
|
||||
})
|
||||
self._add_pusher_to_store(user_name, kind, app, app_display_name, device_display_name, pushkey, data)
|
||||
|
||||
|
@ -69,7 +71,9 @@ class PusherPool:
|
|||
device_display_name=pusherdict['device_display_name'],
|
||||
pushkey=pusherdict['pushkey'],
|
||||
data=pusherdict['data'],
|
||||
last_token=pusherdict['last_token']
|
||||
last_token=pusherdict['last_token'],
|
||||
last_success=pusherdict['last_success'],
|
||||
failing_since=pusherdict['failing_since']
|
||||
)
|
||||
else:
|
||||
raise PusherConfigException("Unknown pusher type '%s' for user %s" %
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue