Merge pull request #2979 from matrix-org/erikj/no_handlers

Don't build handlers on workers unnecessarily
This commit is contained in:
Erik Johnston 2018-03-13 13:46:38 +00:00 committed by GitHub
commit 56e709857c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 41 additions and 112 deletions

View file

@ -55,7 +55,6 @@ class RoomMemberHandler(object):
self.registration_handler = hs.get_handlers().registration_handler
self.profile_handler = hs.get_profile_handler()
self.event_creation_hander = hs.get_event_creation_handler()
self.replication_layer = hs.get_replication_layer()
self.member_linearizer = Linearizer(name="member")
@ -212,7 +211,7 @@ class RoomMemberHandler(object):
# if this is a join with a 3pid signature, we may need to turn a 3pid
# invite into a normal invite before we can handle the join.
if third_party_signed is not None:
yield self.replication_layer.exchange_third_party_invite(
yield self.federation_handler.exchange_third_party_invite(
third_party_signed["sender"],
target.to_string(),
room_id,