From f54b70520a381130d9182c546fffeb17b2414b00 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Wed, 27 Aug 2014 17:03:45 +0100 Subject: Return the store_id from persist_event --- synapse/storage/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'synapse') 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__) -- cgit 1.4.1