Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: introduce asyncio.Lock #24

Merged
merged 1 commit into from
Aug 10, 2023
Merged

fix: introduce asyncio.Lock #24

merged 1 commit into from
Aug 10, 2023

Conversation

iomz
Copy link
Owner

@iomz iomz commented Aug 10, 2023

Protect the access to the shared buffer for on_aggregated_data
cf. https://docs.python.org/3/library/asyncio-sync.html#lock

@iomz iomz added the enhancement New feature or request label Aug 10, 2023
@iomz iomz self-assigned this Aug 10, 2023
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #24 (629f684) into main (87decf8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #24   +/-   ##
=======================================
  Coverage   85.63%   85.63%           
=======================================
  Files           7        7           
  Lines         376      376           
  Branches       16       16           
=======================================
  Hits          322      322           
  Misses         50       50           
  Partials        4        4           

@iomz iomz merged commit ce71e7a into main Aug 10, 2023
10 checks passed
@iomz iomz deleted the async-lock branch August 10, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant