diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-03 07:12:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 07:12:55 -0400 |
commit | 3b415e23a52dfde90d387821e42cdb3a4eb4e068 (patch) | |
tree | 0fc06433e0da098b964c9fbf9bf5e7d1f13e7713 /synapse/replication/http/membership.py | |
parent | Convert ACME code to async/await. (#7989) (diff) | |
download | synapse-3b415e23a52dfde90d387821e42cdb3a4eb4e068.tar.xz |
Convert replication code to async/await. (#7987)
Diffstat (limited to 'synapse/replication/http/membership.py')
-rw-r--r-- | synapse/replication/http/membership.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/synapse/replication/http/membership.py b/synapse/replication/http/membership.py index 63ef6eb7be..741329ab5f 100644 --- a/synapse/replication/http/membership.py +++ b/synapse/replication/http/membership.py @@ -52,7 +52,9 @@ class ReplicationRemoteJoinRestServlet(ReplicationEndpoint): self.clock = hs.get_clock() @staticmethod - def _serialize_payload(requester, room_id, user_id, remote_room_hosts, content): + async def _serialize_payload( + requester, room_id, user_id, remote_room_hosts, content + ): """ Args: requester(Requester) @@ -112,7 +114,7 @@ class ReplicationRemoteRejectInviteRestServlet(ReplicationEndpoint): self.member_handler = hs.get_room_member_handler() @staticmethod - def _serialize_payload( # type: ignore + async def _serialize_payload( # type: ignore invite_event_id: str, txn_id: Optional[str], requester: Requester, @@ -174,7 +176,7 @@ class ReplicationUserJoinedLeftRoomRestServlet(ReplicationEndpoint): self.distributor = hs.get_distributor() @staticmethod - def _serialize_payload(room_id, user_id, change): + async def _serialize_payload(room_id, user_id, change): """ Args: room_id (str) |