We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when registrar get instances from eureka server app, it ignore eureka app status.
func convertFargoAppToInstances(app *fargo.Application) []string { instances := make([]string, len(app.Instances)) for i, inst := range app.Instances { instances[i] = fmt.Sprintf("%s:%d", inst.IPAddr, inst.Port) } return instances }
How can i filter them? (eg: I only want STATUS = 'UP' instance)
func convertFargoAppToInstances(app *fargo.Application) []string { var instances []string for _, inst := range app.Instances { if inst.Status == fargo.UP { instances = append(instances, fmt.Sprintf("%s:%d", inst.IPAddr, inst.Port)) } } return instances }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when registrar get instances from eureka server app, it ignore eureka app status.
How can i filter them? (eg: I only want STATUS = 'UP' instance)
The text was updated successfully, but these errors were encountered: