mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 13:14:56 -04:00
Add type hints for most HomeServer
parameters (#11095)
This commit is contained in:
parent
b9ce53e878
commit
2b82ec425f
58 changed files with 342 additions and 143 deletions
|
@ -294,7 +294,7 @@ class ReplicationCommandHandler:
|
|||
# This shouldn't be possible
|
||||
raise Exception("Unrecognised command %s in stream queue", cmd.NAME)
|
||||
|
||||
def start_replication(self, hs):
|
||||
def start_replication(self, hs: "HomeServer"):
|
||||
"""Helper method to start a replication connection to the remote server
|
||||
using TCP.
|
||||
"""
|
||||
|
@ -321,6 +321,8 @@ class ReplicationCommandHandler:
|
|||
hs.config.redis.redis_host, # type: ignore[arg-type]
|
||||
hs.config.redis.redis_port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
bindAddress=None,
|
||||
)
|
||||
else:
|
||||
client_name = hs.get_instance_name()
|
||||
|
@ -331,6 +333,8 @@ class ReplicationCommandHandler:
|
|||
host, # type: ignore[arg-type]
|
||||
port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
bindAddress=None,
|
||||
)
|
||||
|
||||
def get_streams(self) -> Dict[str, Stream]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue