Skip to content

Commit

Permalink
Remove unnecessary arguments from knocking _serialize_payload functions
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Nov 24, 2020
1 parent 72d16b0 commit 3fb055c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions synapse/replication/http/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,11 @@ def __init__(self, hs):

@staticmethod
async def _serialize_payload( # type: ignore
requester: Requester,
room_id: str,
user_id: str,
remote_room_hosts: List[str],
content: JsonDict,
requester: Requester, remote_room_hosts: List[str], content: JsonDict,
):
"""
Args:
requester: The user making the request, according to the access token.
room_id: The ID of the room to knock on.
user_id: The ID of the knocking user.
remote_room_hosts: Servers to try and send the knock via.
content: The event content to use for the knock event.
"""
Expand Down Expand Up @@ -245,14 +239,10 @@ def __init__(self, hs: "HomeServer"):

@staticmethod
async def _serialize_payload( # type: ignore
knock_event_id: str,
txn_id: Optional[str],
requester: Requester,
content: JsonDict,
txn_id: Optional[str], requester: Requester, content: JsonDict,
):
"""
Args:
knock_event_id: The ID of the knock to be rescinded.
txn_id: An optional transaction ID supplied by the client.
requester: The user making the rescind request, according to the access token.
content: The content to include in the rescind event.
Expand Down

0 comments on commit 3fb055c

Please sign in to comment.