Skip to content

Conversation

@LVala
Copy link
Contributor

@LVala LVala commented Mar 5, 2024

This PR add get_local_candidates/1 and get_remote_candidates/1 functions.

@LVala LVala requested a review from mickel8 March 5, 2024 13:54
@LVala LVala self-assigned this Mar 5, 2024
end

@doc """
Gets remote candidates that have been supplied by `add_remote_candidate/2`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Gets remote candidates that have been supplied by `add_remote_candidate/2`.
Gets all remote candidates.
This includes candidates supplied by `add_remote_candidate/2` and candidates discovered during ICE connection establishment process (so called prflx candidates).

@doc """
Gets local candidates that have been already gathered.
"""
@spec get_local_candidates(pid()) :: [binary()]
Copy link
Contributor

Choose a reason for hiding this comment

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

I would use String.t()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the same type as in signal() with {:new_candidate, binary()}, I would rather keep it consistent and change both or none.

@codecov
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Merging #26 (b38adf1) into master (49b87c3) will decrease coverage by 0.61%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   80.20%   79.59%   -0.61%     
==========================================
  Files          17       17              
  Lines         884      892       +8     
==========================================
+ Hits          709      710       +1     
- Misses        175      182       +7     
Files Coverage Δ
lib/ex_ice/ice_agent/impl.ex 81.72% <0.00%> (-0.11%) ⬇️
lib/ex_ice/ice_agent.ex 50.00% <0.00%> (-7.90%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49b87c3...b38adf1. Read the comment docs.

@LVala LVala merged commit 3d98186 into master Mar 6, 2024
@LVala LVala deleted the get-cands branch March 6, 2024 10:33
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