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 not working slack. #60

Merged
merged 3 commits into from
Jan 25, 2021
Merged

Fix not working slack. #60

merged 3 commits into from
Jan 25, 2021

Conversation

rabbbit
Copy link
Contributor

@rabbbit rabbbit commented Jan 3, 2021

As reported in #23 and #27 slack is currently broken in the atomic
implementation.

Both #23 and #27 propose valid solutions, and I actually arrived
at #23 when trying to solve this independently, but I find #27
slightly more readable/understandable, so going with that.

@rabbbit rabbbit requested a review from cinchurge January 3, 2021 21:26
@codecov
Copy link

codecov bot commented Jan 3, 2021

Codecov Report

Merging #60 (fcd0282) into master (688a9ec) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           63        67    +4     
=========================================
+ Hits            63        67    +4     
Impacted Files Coverage Δ
limiter_atomic.go 100.00% <100.00%> (ø)

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 688a9ec...fcd0282. Read the comment docs.

As reported in #23 and #27 slack is currently broken in the atomic
implementation.

Both #23 and #27 propose valid solutions, and I actually arrived
at #23 when trying to solve this independently, but I find #27
slightly more readable/understandable, so going with that.

Also, #23 seems to expose another bug in andres-erbsen/clock, with
sleeping with negative time, so we should probably consider switching
to benbjohnson/clock - maybe in a follow up.
@rabbbit
Copy link
Contributor Author

rabbbit commented Jan 19, 2021

ping @cinchurge ;)

Note that #56 is landed now, so we have two implementations to compare against - effectively two tests;)

@rabbbit
Copy link
Contributor Author

rabbbit commented Jan 24, 2021

@abhinav, could you take a look?

The tests are passing, this is okay even if the atomic implementation still needs more testing & decision.

All this is just so that we don't have obvious bugs & missing features. Once this lands we'll be able to fix a few other slack issues (allow people to configure slack) and maybe release a new minor version (see #55).

Copy link

@cinchurge cinchurge left a comment

Choose a reason for hiding this comment

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

LGTM

@rabbbit rabbbit merged commit 296e9dc into master Jan 25, 2021
@rabbbit rabbbit deleted the slack branch January 25, 2021 01:22
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.

2 participants