mennanov / limiters

Golang rate limiters for distributed applications
https://godoc.org/github.com/mennanov/limiters
MIT License
459 stars 49 forks source link

implement redis lock using redsync #15

Closed guyguy333 closed 1 year ago

guyguy333 commented 1 year ago

This PR updates to Go Redis v9 and implement a redis lock using redsync

codecov[bot] commented 1 year ago

Codecov Report

Merging #15 (62b0190) into master (cba7a72) will increase coverage by 0.17%. The diff coverage is 86.48%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   83.01%   83.19%   +0.17%     
==========================================
  Files          10       10              
  Lines        1166     1178      +12     
==========================================
+ Hits          968      980      +12     
  Misses        135      135              
  Partials       63       63              
Impacted Files Coverage Δ
locks.go 80.85% <75.00%> (-2.01%) :arrow_down:
tokenbucket.go 81.23% <80.00%> (+0.87%) :arrow_up:
concurrent_buffer.go 91.42% <90.00%> (ø)
fixedwindow.go 91.26% <100.00%> (ø)
leakybucket.go 80.26% <100.00%> (ø)
slidingwindow.go 86.70% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

mennanov commented 1 year ago

Great contribution, thanks!