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

Fix lock is not instantiated on UnixDomainSocketConnection init (#1249) #1251

Merged
merged 1 commit into from
Dec 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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