diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-05-13 17:33:44 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-05-13 17:33:44 +0100 |
commit | 0466454b003860dba23363f882916eb4f7d27648 (patch) | |
tree | 2025383a5c338dd73b06e7e911ef8ef5a365af05 /synapse/replication/slave/storage/receipts.py | |
parent | Merge pull request #780 from matrix-org/dbkr/email_notifs_on_pusher (diff) | |
download | synapse-0466454b003860dba23363f882916eb4f7d27648.tar.xz |
Assert that stream replicated stream positions are ints
Diffstat (limited to 'synapse/replication/slave/storage/receipts.py')
-rw-r--r-- | synapse/replication/slave/storage/receipts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/receipts.py b/synapse/replication/slave/storage/receipts.py index b55d5dfd08..ec007516d0 100644 --- a/synapse/replication/slave/storage/receipts.py +++ b/synapse/replication/slave/storage/receipts.py @@ -50,7 +50,7 @@ class SlavedReceiptsStore(BaseSlavedStore): def process_replication(self, result): stream = result.get("receipts") if stream: - self._receipts_id_gen.advance(stream["position"]) + self._receipts_id_gen.advance(int(stream["position"])) for row in stream["rows"]: room_id, receipt_type, user_id = row[1:4] self.invalidate_caches_for_receipt(room_id, receipt_type, user_id) |