summary refs log tree commit diff
path: root/stubs
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-03-11 18:35:09 +0000
committerGitHub <noreply@github.com>2021-03-11 18:35:09 +0000
commit464e5da7b28f201375aec64de9821b8b232e3046 (patch)
treef993cd00dbf6f3a8a4ab6bf96411d6c13fac7c6f /stubs
parentAdd tests for blacklisting reactor/agent. (#9563) (diff)
downloadsynapse-464e5da7b28f201375aec64de9821b8b232e3046.tar.xz
Add logging for redis connection setup (#9590)
Diffstat (limited to 'stubs')
-rw-r--r--stubs/txredisapi.pyi4
1 files changed, 3 insertions, 1 deletions
diff --git a/stubs/txredisapi.pyi b/stubs/txredisapi.pyi
index 618548a305..34787e0b1e 100644
--- a/stubs/txredisapi.pyi
+++ b/stubs/txredisapi.pyi
@@ -17,6 +17,8 @@
 """
 from typing import Any, List, Optional, Type, Union
 
+from twisted.internet import protocol
+
 class RedisProtocol:
     def publish(self, channel: str, message: bytes): ...
     async def ping(self) -> None: ...
@@ -52,7 +54,7 @@ def lazyConnection(
 
 class ConnectionHandler: ...
 
-class RedisFactory:
+class RedisFactory(protocol.ReconnectingClientFactory):
     continueTrying: bool
     handler: RedisProtocol
     pool: List[RedisProtocol]