diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-11-10 15:06:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 15:06:54 -0500 |
commit | 5cace20bf1f3c50ea50d56a938c4eee5825f4b84 (patch) | |
tree | eb926831cf00aabe5c43a32dfae9256d83e4fb07 /synapse/replication/tcp | |
parent | Add type hints to synapse._scripts (#11297) (diff) | |
download | synapse-5cace20bf1f3c50ea50d56a938c4eee5825f4b84.tar.xz |
Add missing type hints to `synapse.app`. (#11287)
Diffstat (limited to '')
-rw-r--r-- | synapse/replication/tcp/resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/tcp/resource.py b/synapse/replication/tcp/resource.py index 55326877fd..a9d85f4f6c 100644 --- a/synapse/replication/tcp/resource.py +++ b/synapse/replication/tcp/resource.py @@ -20,7 +20,7 @@ from typing import TYPE_CHECKING from prometheus_client import Counter -from twisted.internet.protocol import Factory +from twisted.internet.protocol import ServerFactory from synapse.metrics.background_process_metrics import run_as_background_process from synapse.replication.tcp.commands import PositionCommand @@ -38,7 +38,7 @@ stream_updates_counter = Counter( logger = logging.getLogger(__name__) -class ReplicationStreamProtocolFactory(Factory): +class ReplicationStreamProtocolFactory(ServerFactory): """Factory for new replication connections.""" def __init__(self, hs: "HomeServer"): |