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 inconsistencies in timer implementations #338

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

paulwe
Copy link
Contributor

@paulwe paulwe commented Jul 1, 2024

Replaces goroutine based ack timer with callback pattern used in other parts of the project.

Adds pending timer tick counters to prevent races between Stop and timers firing. This fixes an edge case where callacks may have fired after stop was called.

Replaces goroutine based ack timer with callback pattern used in
other parts of the project.

Adds pending timer tick counters to prevent races between Stop and
timers firing. This fixes an edge case where callacks may have
fired after stop was called.
@paulwe paulwe requested review from boks1971 and cnderrauber July 1, 2024 11:18
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.58%. Comparing base (a8bc9b8) to head (8bd170c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
- Coverage   81.64%   81.58%   -0.07%     
==========================================
  Files          51       51              
  Lines        3324     3323       -1     
==========================================
- Hits         2714     2711       -3     
- Misses        468      469       +1     
- Partials      142      143       +1     
Flag Coverage Δ
go 81.58% <100.00%> (-0.07%) ⬇️
wasm 67.67% <100.00%> (+0.08%) ⬆️

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.

Copy link
Member

@cnderrauber cnderrauber 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!

@paulwe paulwe merged commit e23ff7a into master Jul 1, 2024
13 checks passed
@paulwe paulwe deleted the timer-simplify branch July 1, 2024 14:25
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