Skip to content

Conversation

wind57
Copy link
Contributor

@wind57 wind57 commented Feb 21, 2023

No description provided.

Map<String, String> serviceMetadata = serviceMetadata(serviceId, service, properties, subsets, namespace);

for (EndpointSubset endpointSubset : subsets) {
List<EndpointAddress> addresses = endpointSubset.getAddresses();
Copy link
Contributor Author

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);
Copy link
Contributor Author

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

@wind57
Copy link
Contributor Author

wind57 commented Feb 21, 2023

@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.

@wind57 wind57 marked this pull request as ready for review February 21, 2023 18:13
@ryanjbaxter ryanjbaxter added this to the 3.0.2 milestone Feb 21, 2023
@ryanjbaxter ryanjbaxter merged commit 55f45d4 into spring-cloud:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants