-
Notifications
You must be signed in to change notification settings - Fork 1k
Clean up addresses #1235
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
Clean up addresses #1235
Conversation
Map<String, String> serviceMetadata = serviceMetadata(serviceId, service, properties, subsets, namespace); | ||
|
||
for (EndpointSubset endpointSubset : subsets) { | ||
List<EndpointAddress> addresses = endpointSubset.getAddresses(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've taken this one and moved it to the static utilities class, very slightly polished it and added tests
int endpointPort = endpointsPort(endpointSubset, serviceId, properties, service); | ||
List<EndpointAddress> addresses = addresses(endpointSubset, properties); | ||
for (EndpointAddress endpointAddress : addresses) { | ||
int endpointPort = endpointsPort(endpointSubset, serviceId, properties, service); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took this out of the loop
@ryanjbaxter sorry for sounding like a broken record, but this is one more clean-up. I hope the last one and I can fix a few defects now in fabric8-discovery implementation that we have. thank you so much for being patient with me. |
No description provided.