diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-04 16:51:23 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-04 16:51:23 +0000 |
commit | da4a09f977181ae222438dc75f5717cbebc6fe86 (patch) | |
tree | c2cdc7e10ca0f6f0c51211291d72c771dfa5c7b3 /synapse | |
parent | PEP8 (diff) | |
download | synapse-da4a09f977181ae222438dc75f5717cbebc6fe86.tar.xz |
Don't bother locking
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/federation.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 8848656b1d..06a2dabae2 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -132,12 +132,11 @@ class FederationHandler(BaseHandler): # TODO: Implement something in federation that allows us to # respond to PDU. - with (yield self.room_lock.lock(event.room_id)): - yield self.store.persist_event( - event, - backfilled, - is_new_state=is_new_state - ) + yield self.store.persist_event( + event, + backfilled, + is_new_state=is_new_state + ) room = yield self.store.get_room(event.room_id) |