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

multiple: modernize code #1668

Merged
merged 2 commits into from
Sep 17, 2024
Merged

multiple: modernize code #1668

merged 2 commits into from
Sep 17, 2024

Conversation

fippo
Copy link
Collaborator

@fippo fippo commented Jul 4, 2024

which was still stuck in the 2012 style

which was still stuck in the 2012 style
Copy link

@nikolov9996 nikolov9996 left a comment

Choose a reason for hiding this comment

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

No changes in the tests after async/await changes.
Please leave a comment or tests - if required.
I see the check is passing, but does the current test working as expected for the new style.


function onCreateSessionDescriptionError(error) {
console.log(`Failed to create session description: ${error.toString()}`);
localStream.getTracks().forEach(track => {

Choose a reason for hiding this comment

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

looks fine to me, but there is no changes in tests, do the tests work the same way after replacing callbacks with async/await?

Copy link
Member

Choose a reason for hiding this comment

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

This PR is just refactoring from old style to new style so if the old code was well tested then it will have ensured that this PR did not regress any behavior. Not sure how well tested webrtc samples is in general but what this PR is doing is LGTM

@fippo fippo merged commit b4d1578 into webrtc:gh-pages Sep 17, 2024
3 checks passed
@fippo fippo deleted the modernize-multiple branch September 17, 2024 14:05
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