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

Add text-based UI for hammer #114

Merged
merged 3 commits into from
Apr 18, 2024
Merged

Conversation

mhutchinson
Copy link
Contributor

This required some refactoring to create an object tree to keep references to all of the components that had previously been let loose in their own goroutines without any references.

This provides a key handler for increasing/decreasing ops/s (using +/-).

This required some refactoring to create an object tree to keep references to all of the components that had previously been let loose in their own goroutines without any references.

This provides a key handler for increasing/decreasing ops/s (using +/-).
hammer/clients.go Outdated Show resolved Hide resolved
@mhutchinson mhutchinson changed the title Add text-base UI for hammer Add text-based UI for hammer Apr 18, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.26%. Comparing base (07aa77d) to head (819f2f0).
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   55.99%   60.26%   +4.26%     
==========================================
  Files           8        8              
  Lines         759      609     -150     
==========================================
- Hits          425      367      -58     
+ Misses        265      173      -92     
  Partials       69       69              

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

It's not thread-safe, but it's probably good enough. Adding a mutex starts to make this a lot more complicated for an initialization process.
@mhutchinson mhutchinson merged commit c35edba into transparency-dev:main Apr 18, 2024
9 checks passed
@mhutchinson mhutchinson deleted the hammerUI branch April 18, 2024 16:34
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