Skip to content

Use sync.Map in RateBucket instead of manual locking#427

Merged
NGTmeaty merged 2 commits intointernetarchive:mainfrom
vbanos:rate-bucket-sync-map
Aug 12, 2025
Merged

Use sync.Map in RateBucket instead of manual locking#427
NGTmeaty merged 2 commits intointernetarchive:mainfrom
vbanos:rate-bucket-sync-map

Conversation

@vbanos
Copy link
Copy Markdown
Collaborator

@vbanos vbanos commented Aug 12, 2025

Locking is slowing us down, this seems like a good case for sync.Map.

vbanos added 2 commits August 12, 2025 13:31
Locking is slowing us down, this seems like a good case for `sync.Map`.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.45%. Comparing base (011c133) to head (31baa8d).
⚠️ Report is 113 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
- Coverage   55.58%   55.45%   -0.13%     
==========================================
  Files         119      119              
  Lines        7313     7292      -21     
==========================================
- Hits         4065     4044      -21     
  Misses       2924     2924              
  Partials      324      324              
Flag Coverage Δ
e2etests 37.52% <20.68%> (+0.03%) ⬆️
unittests 31.73% <100.00%> (-0.20%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@NGTmeaty NGTmeaty left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@NGTmeaty NGTmeaty merged commit b1cb48d into internetarchive:main Aug 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants