Skip to content

Commit

Permalink
Make put_response actually atomic.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed May 26, 2021
1 parent 1f04157 commit 34c8edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fakeredis/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def put_response(self, msg):
# atomically, and the code below then protects us against this.
responses = self.responses
if responses:
self.responses.put(msg)
responses.put(msg)

def pause(self):
self._paused = True
Expand Down

0 comments on commit 34c8edf

Please sign in to comment.