diff options
author | David Baker <dave@matrix.org> | 2015-01-13 19:48:37 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-13 19:48:37 +0000 |
commit | 2cb30767fa5e428f82c6c3ebced15d568d671c3c (patch) | |
tree | 83be3965596504a9e9cf75fe7c0135b5d6bd69d1 /synapse/storage/schema/pusher.sql | |
parent | Merge branch 'develop' into pushers (diff) | |
download | synapse-2cb30767fa5e428f82c6c3ebced15d568d671c3c.tar.xz |
Honour the 'rejected' return from push gateways
Add a timestamp to push tokens so we know the last time they we got them from the device. Send it to the push gateways so it can determine whether its failure is more recent than the token. Stop and remove pushers that have been rejected.
Diffstat (limited to 'synapse/storage/schema/pusher.sql')
-rw-r--r-- | synapse/storage/schema/pusher.sql | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/schema/pusher.sql b/synapse/storage/schema/pusher.sql index 799e48d780..a991e4eb11 100644 --- a/synapse/storage/schema/pusher.sql +++ b/synapse/storage/schema/pusher.sql @@ -21,6 +21,7 @@ CREATE TABLE IF NOT EXISTS pushers ( app_display_name varchar(64) NOT NULL, device_display_name varchar(128) NOT NULL, pushkey blob NOT NULL, + ts BIGINT NOT NULL, data blob, last_token TEXT, last_success BIGINT, |