Skip to content

Conversation

@dxasu
Copy link
Contributor

@dxasu dxasu commented Oct 30, 2025

remove unused fileds bs.

1. Are you opening this pull request for bug-fix, optimization or new feature?

optimization

2. Please describe how these code changes achieve your intention.

unused fields

3. Please link to the relevant issues (if any).

4. Checklist

I am willing to help maintain this change if there are issues with it later.

@panjf2000 panjf2000 added waiting for response waiting for the response from commenter needs investigation labels Oct 30, 2025
func New(size int) *Buffer {
if size == 0 {
return &Buffer{bs: make([][]byte, 2), isEmpty: true}
return &Buffer{bs: make(isEmpty: true}
Copy link
Owner

Choose a reason for hiding this comment

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

This is not even valid Go syntax. Did you run the tests locally before creating the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test with the ring package was run, and everything was OK.

@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.11%. Comparing base (bb3464e) to head (daf3a1b).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #736      +/-   ##
==========================================
+ Coverage   82.53%   84.11%   +1.57%     
==========================================
  Files          22       22              
  Lines        2915     2399     -516     
==========================================
- Hits         2406     2018     -388     
+ Misses        387      259     -128     
  Partials      122      122              
Flag Coverage Δ
unittests 84.11% <ø> (+1.57%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@panjf2000 panjf2000 changed the title pkg/ring/ring_buffer: remove unused fileds pkg/ring/ring_buffer: remove the unused field "bs" Nov 3, 2025
@panjf2000 panjf2000 merged commit e0d20dc into panjf2000:dev Nov 3, 2025
35 checks passed
@panjf2000
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs investigation waiting for response waiting for the response from commenter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants