summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-02-05 15:47:00 +0000
committerGitHub <noreply@github.com>2020-02-05 15:47:00 +0000
commit146fec08208144c8566da5ab6c2683229d162c1a (patch)
treef8d3acaaf7f471fd4c70e5556d628f33d5b97b69
parentMerge remote-tracking branch 'origin/develop' into rav/federation_client_async (diff)
downloadsynapse-146fec08208144c8566da5ab6c2683229d162c1a.tar.xz
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
-rw-r--r--synapse/federation/federation_client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 51f9b1d8d7..b4525d28c2 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -528,7 +528,7 @@ class FederationClient(FederationBase):
 
         Returns:
             a dict with members ``origin`` (a string
-            giving the serer the event was sent to, ``state`` (?) and
+            giving the server the event was sent to, ``state`` (?) and
             ``auth_chain``.
 
         Raises:
@@ -659,7 +659,9 @@ class FederationClient(FederationBase):
         # content.
         return resp[1]
 
-    async def send_invite(self, destination, room_id, event_id, pdu):
+    async def send_invite(
+        self, destination: str, room_id: str, event_id: str, pdu: EventBase,
+    ) -> EventBase:
         room_version = await self.store.get_room_version_id(room_id)
 
         content = await self._do_send_invite(destination, pdu, room_version)