• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 22927936641
94%

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2026 10:54PM UTC
Jobs 1
Files 66
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Mar 2026 10:53PM UTC coverage: 93.511% (+0.07%) from 93.445%
22927936641

push

github

web-flow
fix: release store lock before acquiring entry lock in rate limit store (#72)

The checkTokenBucket(), checkFixedWindow(), and checkSlidingWindow()
functions held the store lock while acquiring the entry lock. While
safe currently, this inconsistent lock ordering could lead to deadlocks
if the pattern changes in the future.

Changes:
- Release store lock (s.mu) before acquiring entry lock (entry.mutex)
- Update all three rate limit algorithms: token bucket, fixed window,
  sliding window
- Add comments explaining the lock ordering

Signed-off-by: alexferl <me@alexferl.com>

15 of 15 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

8128 of 8692 relevant lines covered (93.51%)

46.5 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
93.37
0.0% sse.go
Jobs
ID Job ID Ran Files Coverage
1 22927936641.1 10 Mar 2026 10:54PM UTC 66
93.51
GitHub Action Run
Source Files on build 22927936641
  • Tree
  • List 66
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22927936641
  • 393e460b on github
  • Prev Build on master (#22927738560)
  • Next Build on master (#22928429868)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc