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

Rework syncx.Batcher so that it flushes a batch without waiting if it has enough items #95

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Aug 29, 2023

If for example courier has 1000 msg statuses queued, batcher shouldn't wait to hit timeout.. should just process those 1000.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #95 (b946c1e) into main (64a5ea3) will increase coverage by 0.29%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   91.60%   91.89%   +0.29%     
==========================================
  Files          35       35              
  Lines        1655     1678      +23     
==========================================
+ Hits         1516     1542      +26     
+ Misses        105      103       -2     
+ Partials       34       33       -1     
Files Changed Coverage Δ
syncx/batcher.go 100.00% <100.00%> (+7.50%) ⬆️

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

@rowanseymour rowanseymour merged commit e141e1d into main Aug 31, 2023
9 checks passed
@rowanseymour rowanseymour deleted the better_batcher branch August 31, 2023 15:42
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants