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

How to get the ip+port after load balancing? #3471

Closed
nogolang opened this issue Nov 21, 2024 · 2 comments
Closed

How to get the ip+port after load balancing? #3471

nogolang opened this issue Nov 21, 2024 · 2 comments
Labels
question Further information is requested

Comments

@nogolang
Copy link

grpcClient, err := grpc.DialInsecure(
	context.Background(),
	grpc.WithEndpoint("discovery:///user-service"),
	grpc.WithDiscovery(etcdRegister),

How to get the real ip+port after load balancing?

@nogolang nogolang added the question Further information is requested label Nov 21, 2024
@shenqidebaozi
Copy link
Member

selector.FromPeerContext

@nogolang
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants