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
replace NettyChannelBuilder.nameResolverFactory #7557
Comments
As the Javadoc says, if you are implementing your own resolver, you'd implement a provider for it. Then you'd either need to register your provider to the global registry, either with SPI mechanism or do it manually. Then you do not need to provide the name resolver factory to the channel builder, the channel can select it automatically from the registry. |
#7133 is the issue for encouraging migrating away from |
@voidzcy I tried to add resolver and provider,but a new error was reported
|
I saw |
@usertree, it seems you are trying to override the DNS name resolver with your own. Make sure to return a value larger than |
Grpc load balancing needs to be used, but the method nameResolverFactory() has been abandoned. How to replace it?
The text was updated successfully, but these errors were encountered: