Don't bother locking

This commit is contained in:
Erik Johnston 2014-11-04 16:51:23 +00:00
parent 7f4c7fe4e8
commit da4a09f977
1 changed files with 5 additions and 6 deletions

View File

@ -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)