Skip to content

Add the public API for send side BWE - #55

Draft
mengelbart wants to merge 2 commits into
mainfrom
feat/send-side-bwe-controller
Draft

Add the public API for send side BWE#55
mengelbart wants to merge 2 commits into
mainfrom
feat/send-side-bwe-controller

Conversation

@mengelbart

Copy link
Copy Markdown
Contributor

The current API requires users to call OnAck and OnLoss for each packet in a report, then call OnFeedback. An alternative would be to have only a single method accepting a report data structure so the controller can read (and sort) it internally. The downside would be that we need a common data structure for this, which would force users to build it manually and require additional loops (the client loops through his report to build the structure, and we loop through it to consume it). That may be fine for use within pion, but it makes it harder to use the algorithm elsewhere. Any opinions?

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.48241% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.76%. Comparing base (64583a1) to head (2d206d1).

Files with missing lines Patch % Lines
gcc/send_side_bwe.go 86.53% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
- Coverage   98.76%   97.76%   -1.00%     
==========================================
  Files           8       10       +2     
  Lines         324      493     +169     
==========================================
+ Hits          320      482     +162     
- Misses          2        6       +4     
- Partials        2        5       +3     
Flag Coverage Δ
go 97.76% <96.48%> (-1.00%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

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.

1 participant