mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 07:04:06 -04:00
Remove unnecessary ignores due to Twisted upgrade. (#11939)
Twisted 22.1.0 fixed some internal type hints, allowing Synapse to remove ignore calls for parameters to connectTCP.
This commit is contained in:
parent
6b91315ddf
commit
6c0984e3f0
4 changed files with 5 additions and 4 deletions
|
@ -318,7 +318,7 @@ class ReplicationCommandHandler:
|
|||
hs, outbound_redis_connection
|
||||
)
|
||||
hs.get_reactor().connectTCP(
|
||||
hs.config.redis.redis_host, # type: ignore[arg-type]
|
||||
hs.config.redis.redis_host,
|
||||
hs.config.redis.redis_port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
|
@ -330,7 +330,7 @@ class ReplicationCommandHandler:
|
|||
host = hs.config.worker.worker_replication_host
|
||||
port = hs.config.worker.worker_replication_port
|
||||
hs.get_reactor().connectTCP(
|
||||
host, # type: ignore[arg-type]
|
||||
host,
|
||||
port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue