diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-08-27 17:03:45 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-08-27 17:03:45 +0100 |
commit | f54b70520a381130d9182c546fffeb17b2414b00 (patch) | |
tree | ca62316ade15cb71163a4bd136876d607240ffc3 /synapse/storage/__init__.py | |
parent | Merge branch 'develop' into storage_transactions (diff) | |
download | synapse-f54b70520a381130d9182c546fffeb17b2414b00.tar.xz |
Return the store_id from persist_event
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 514d7eeb69..e8faba3eeb 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -96,7 +96,9 @@ class DataStore(RoomMemberStore, RoomStore, if pdu is not None: self._persist_event_pdu_txn(txn, pdu) if event is not None: - self._persist_event_txn(txn, event, backfilled, stream_ordering) + return self._persist_event_txn( + txn, event, backfilled, stream_ordering + ) def _persist_event_pdu_txn(self, txn, pdu): cols = dict(pdu.__dict__) |