summary refs log tree commit diff
path: root/synapse/http/connectproxyclient.py
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-11-22 17:23:44 +0100
committerMathieu Velten <mathieuv@matrix.org>2022-11-22 18:10:08 +0100
commitb1be9a742a079d9fb72d37f64f1b177dfb1bd7f7 (patch)
treef0800a6e579e9fd54a4f6e09514ea6e7fc898efd /synapse/http/connectproxyclient.py
parentAdd type ignore unused-awaitable to ensureDeffered calls (diff)
downloadsynapse-b1be9a742a079d9fb72d37f64f1b177dfb1bd7f7.tar.xz
Add type ignore unused-awaitable to places adding callbacks to a deffered
Diffstat (limited to 'synapse/http/connectproxyclient.py')
-rw-r--r--synapse/http/connectproxyclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/connectproxyclient.py b/synapse/http/connectproxyclient.py

index 23a60af171..76c01dc268 100644 --- a/synapse/http/connectproxyclient.py +++ b/synapse/http/connectproxyclient.py
@@ -102,7 +102,7 @@ class HTTPConnectProxyEndpoint: d = self._proxy_endpoint.connect(f) # once the tcp socket connects successfully, we need to wait for the # CONNECT to complete. - d.addCallback(lambda conn: f.on_connection) + d.addCallback(lambda conn: f.on_connection) # type: ignore[unused-awaitable] return d @@ -196,7 +196,7 @@ class HTTPConnectProtocol(protocol.Protocol): self.http_setup_client = HTTPConnectSetupClient( self.host, self.port, self.proxy_creds ) - self.http_setup_client.on_connected.addCallback(self.proxyConnected) + self.http_setup_client.on_connected.addCallback(self.proxyConnected) # type: ignore[unused-awaitable] def connectionMade(self) -> None: self.http_setup_client.makeConnection(self.transport)