mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Assert that stream replicated stream positions are ints
This commit is contained in:
parent
077468f6a9
commit
0466454b00
3 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue