Skip to content

Commit

Permalink
redis_connect_func
Browse files Browse the repository at this point in the history
  • Loading branch information
lazToum committed Mar 13, 2022
1 parent 8d949a3 commit de56455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis/asyncio/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,7 @@ def __init__(
health_check_interval: float = 0.0,
client_name: str = None,
retry: Optional[Retry] = None,
redis_connect_func=None,
):
"""
Initialize a new UnixDomainSocketConnection.
Expand All @@ -1153,6 +1154,7 @@ def __init__(
self.retry = Retry(NoBackoff(), 0)
self.health_check_interval = health_check_interval
self.next_health_check = -1
self.redis_connect_func = redis_connect_func
self.encoder = Encoder(encoding, encoding_errors, decode_responses)
self._sock = None
self._reader = None
Expand Down

0 comments on commit de56455

Please sign in to comment.