Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Fix lock is not instantiated on UnixDomainSocketConnection init (#1249)
Browse files Browse the repository at this point in the history
Fixes #1249
  • Loading branch information
soonum committed Dec 23, 2021
1 parent 224f843 commit d52930f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/1249.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instantiate lock on UnixDomainSocketConnection init.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Chao Guo <jeffguorg>
Contributors
Daniil Kozhanov
David Francos
David Testé
Dima Kit
Dima Kruk
Dmitry Vasilishin <dmvass>
Expand Down
1 change: 1 addition & 0 deletions aioredis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ def __init__(
self._parser = parser_class(socket_read_size=socket_read_size)
self._connect_callbacks = []
self._buffer_cutoff = 6000
self._lock = asyncio.Lock()

def repr_pieces(self) -> Iterable[Tuple[str, Union[str, int]]]:
pieces = [
Expand Down

0 comments on commit d52930f

Please sign in to comment.