diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-03-01 14:54:29 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-03-01 14:54:29 +0000 |
commit | d50ca1b1edf45b630715f1847435eb493842bbdc (patch) | |
tree | 5a291e62c4615275e7fc63284b088d82f069c3a9 /synapse/storage/receipts.py | |
parent | Merge pull request #611 from matrix-org/erikj/expiring_cache_size (diff) | |
parent | Load the current id in the IdGenerator constructor (diff) | |
download | synapse-d50ca1b1edf45b630715f1847435eb493842bbdc.tar.xz |
Merge pull request #613 from matrix-org/markjh/yield
Load the current id in the IdGenerator constructor
Diffstat (limited to 'synapse/storage/receipts.py')
-rw-r--r-- | synapse/storage/receipts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py index a7343c97f7..cd6dca4901 100644 --- a/synapse/storage/receipts.py +++ b/synapse/storage/receipts.py @@ -330,7 +330,7 @@ class ReceiptsStore(SQLBaseStore): "insert_receipt_conv", graph_to_linear ) - stream_id_manager = yield self._receipts_id_gen.get_next(self) + stream_id_manager = self._receipts_id_gen.get_next() with stream_id_manager as stream_id: have_persisted = yield self.runInteraction( "insert_linearized_receipt", @@ -347,7 +347,7 @@ class ReceiptsStore(SQLBaseStore): room_id, receipt_type, user_id, event_ids, data ) - max_persisted_id = yield self._stream_id_gen.get_max_token() + max_persisted_id = self._stream_id_gen.get_max_token() defer.returnValue((stream_id, max_persisted_id)) |