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

Conversation

soonum
Copy link
Contributor

@soonum soonum commented Dec 23, 2021

Fixes #1249

What do these changes do?

It instantiate an asyncio.Lock in UnixDomainSocketConnection.__init__ . This is done to reflect changes that occurred in #1106 .

Are there changes in behavior for the user?

Commands over Unix socket to Redis now succeed.

Related issue number

#1249

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES/ folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example:
      Fix issue with non-ascii contents in doctest text files.

Copy link
Collaborator

@Andrew-Chen-Wang Andrew-Chen-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@codecov
Copy link

codecov bot commented Dec 24, 2021

Codecov Report

Merging #1251 (d52930f) into master (224f843) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1251   +/-   ##
=======================================
  Coverage   90.66%   90.66%           
=======================================
  Files          21       21           
  Lines        6869     6870    +1     
  Branches      793      793           
=======================================
+ Hits         6228     6229    +1     
  Misses        469      469           
  Partials      172      172           
Flag Coverage Δ
unit 90.58% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aioredis/connection.py 77.42% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 224f843...d52930f. Read the comment docs.

@Andrew-Chen-Wang Andrew-Chen-Wang merged commit a28e0e9 into aio-libs-abandoned:master Dec 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError on _lock with Unix socket connection
2 participants