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

grpc-js: Add support for ipv4 and ipv6 schemes #1752

Merged

Conversation

murgatroid99
Copy link
Member

@murgatroid99 murgatroid99 commented Apr 16, 2021

This adds support for the ipv4 and ipv6 schemes as described in the naming doc. These schemes support multiple addresses in a single target string, and uniquely, multiple different ports. This makes it much easier to meaningfully test the round_robin load balancing policy, and in particular #1728.

logging.trace(LogVerbosity.DEBUG, TRACER_NAME, text);
}

const IPV4_SCHEME = 'ipv4';
Copy link
Member

Choose a reason for hiding this comment

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

Sorts of feels weird that these are private strings here, but I guess there might not be any needs to expose a list of all the known schemes somewhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

If they were going to be exposed in any way, it would probably be through the registerResolver function, so the string constants in this file would still be private.

@murgatroid99 murgatroid99 merged commit d394c2c into grpc:@grpc/grpc-js@1.3.x Apr 20, 2021
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.

None yet

2 participants