summary refs log tree commit diff
path: root/synapse/replication/tcp/commands.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:25:38 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:25:38 +0100
commit69d83ca0f099bc2ce7a78d69fdaa1fb7ad30b099 (patch)
treee8a5109643abf6407a233dc78fa7988a619b807f /synapse/replication/tcp/commands.py
parentMerge commit 'c6f8e8086' into anoa/dinsic_release_1_31_0 (diff)
parent 1.31.0rc1 (diff)
downloadsynapse-69d83ca0f099bc2ce7a78d69fdaa1fb7ad30b099.tar.xz
Merge commit '78e48f61b' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/replication/tcp/commands.py')
-rw-r--r--synapse/replication/tcp/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/replication/tcp/commands.py b/synapse/replication/tcp/commands.py

index bb447f75b4..8abed1f52d 100644 --- a/synapse/replication/tcp/commands.py +++ b/synapse/replication/tcp/commands.py
@@ -312,16 +312,16 @@ class FederationAckCommand(Command): NAME = "FEDERATION_ACK" - def __init__(self, instance_name, token): + def __init__(self, instance_name: str, token: int): self.instance_name = instance_name self.token = token @classmethod - def from_line(cls, line): + def from_line(cls, line: str) -> "FederationAckCommand": instance_name, token = line.split(" ") return cls(instance_name, int(token)) - def to_line(self): + def to_line(self) -> str: return "%s %s" % (self.instance_name, self.token)