Don't bother locking

pull/12/head
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 # TODO: Implement something in federation that allows us to
# respond to PDU. # respond to PDU.
with (yield self.room_lock.lock(event.room_id)): yield self.store.persist_event(
yield self.store.persist_event( event,
event, backfilled,
backfilled, is_new_state=is_new_state
is_new_state=is_new_state )
)
room = yield self.store.get_room(event.room_id) room = yield self.store.get_room(event.room_id)