diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-23 12:02:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-23 16:15:03 +0100 |
commit | 3ca4c7c516a349cbb9dace0ace33bb889955eda1 (patch) | |
tree | 7cd54d5d59316ef65d5511dfb3a7a59827524363 /synapse/handlers/message.py | |
parent | Add DataStores and Storage classes. (diff) | |
download | synapse-3ca4c7c516a349cbb9dace0ace33bb889955eda1.tar.xz |
Use new EventPersistenceStore
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 0f8cce8ffe..7908a2d52c 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -234,6 +234,7 @@ class EventCreationHandler(object): self.hs = hs self.auth = hs.get_auth() self.store = hs.get_datastore() + self.storage = hs.get_storage() self.state = hs.get_state_handler() self.clock = hs.get_clock() self.validator = EventValidator() @@ -868,7 +869,7 @@ class EventCreationHandler(object): if prev_state_ids: raise AuthError(403, "Changing the room create event is forbidden") - (event_stream_id, max_stream_id) = yield self.store.persist_event( + event_stream_id, max_stream_id = yield self.storage.persistence.persist_event( event, context=context ) |