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 GetRemoteCandidates() #596

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Add GetRemoteCandidates() #596

merged 2 commits into from
Jul 4, 2023

Conversation

stv0g
Copy link
Member

@stv0g stv0g commented Jul 3, 2023

This is analogue to GetLocalCandidates() and provides the user with the ability to get a slice of previously added remote candidates without keeping track of them in the application code.

This is analogue to GetLocalCandidates() and provides
the user with the ability to get a slice of previously added
remote candidates without keeping track of them in the
application code.
@stv0g stv0g requested a review from at-wat July 3, 2023 07:34
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch coverage: 76.92% and project coverage change: +0.08 🎉

Comparison is base (794e03f) 78.41% compared to head (eddf3cf) 78.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #596      +/-   ##
==========================================
+ Coverage   78.41%   78.50%   +0.08%     
==========================================
  Files          42       42              
  Lines        4374     4387      +13     
==========================================
+ Hits         3430     3444      +14     
+ Misses        729      728       -1     
  Partials      215      215              
Flag Coverage Δ
go 78.50% <76.92%> (+0.08%) ⬆️
wasm 22.32% <0.00%> (-0.07%) ⬇️

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

Impacted Files Coverage Δ
agent.go 82.38% <76.92%> (-0.09%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@at-wat at-wat left a comment

Choose a reason for hiding this comment

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

The code looks good!
It would be better to add a test if it's not hard.

@stv0g
Copy link
Member Author

stv0g commented Jul 3, 2023

Hi @at-wat,

sure. I also added one for GetLocalCandidates().

@stv0g stv0g requested a review from at-wat July 3, 2023 16:04
agent_test.go Show resolved Hide resolved
Copy link
Member

@at-wat at-wat left a comment

Choose a reason for hiding this comment

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

LGTM

@stv0g stv0g merged commit 52bac76 into pion:master Jul 4, 2023
@stv0g stv0g deleted the get-remote-candidates branch July 4, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants