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

Refactor reader/writer worker pools #154

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

mhutchinson
Copy link
Contributor

These were previously stored in raw slices. Now they are stored within the workerPool abstraction. This couples the ability to create a new worker with the pool, making growing and shrinking the number of workers easy.

Support w/W keys for increasing/decreasing workers

If this needs to be more granular then we can split this to different
keys for changing the size of each of the 3 pools separately.

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 27.43%. Comparing base (07aa77d) to head (1bfda31).
Report is 69 commits behind head on main.

Files Patch % Lines
hammer/hammer.go 0.00% 24 Missing ⚠️
hammer/workerpool.go 0.00% 16 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #154       +/-   ##
===========================================
- Coverage   55.99%   27.43%   -28.56%     
===========================================
  Files           8       16        +8     
  Lines         759     1498      +739     
===========================================
- Hits          425      411       -14     
- Misses        265     1008      +743     
- Partials       69       79       +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

These were previously stored in raw slices. Now they are stored within the workerPool abstraction. This couples the ability to create a new worker with the pool, making growing and shrinking the number of workers easy.

Support w/W keys for increasing/decreasing workers

If this needs to be more granular then we can split this to different
keys for changing the size of each of the 3 pools separately.
@mhutchinson mhutchinson merged commit 276c407 into transparency-dev:main Jun 12, 2024
9 checks passed
@mhutchinson mhutchinson deleted the hammerWorkerPools branch June 12, 2024 10:49
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.

3 participants