Add logging for redis connection setup (#9590)

This commit is contained in:
Richard van der Hoff
2021-03-11 18:35:09 +00:00
committed by GitHub
parent e55bd0e110
commit 464e5da7b2
3 changed files with 39 additions and 1 deletions

View File

@@ -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]