-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm going to have to insist on RoomMemberWorkerHandler going into a different file. Importing the synapse.replication.http
symbols makes it very confusing otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks generally plausible, but a few questions
synapse/replication/http/__init__.py
Outdated
@@ -15,6 +15,7 @@ | |||
|
|||
|
|||
import send_event | |||
import membership |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from synapse.replication.http import membership
, surely?
from synapse.types import Requester, UserID | ||
from synapse.util.distributor import user_left_room, user_joined_room | ||
|
||
import logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system libs first please
port=self.config.worker_replication_http_port, | ||
user_id=target.to_string(), | ||
room_id=room_id, | ||
change="join", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why "join" and "left", rather than "joined" and "left", or "join" and "leave"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I had it in my head that it was user_join_room
. Will change.
requester = Requester.deserialize(self.store, content["requester"]) | ||
|
||
if requester.user: | ||
request.authenticated_entity = requester.user.to_string() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, why are we doing this, given we don't appear to ever use request
again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its used to log the authenticated entity during Processed request...
logging
7631189
to
62ad701
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.