Skip to content

Commit

Permalink
Merge pull request quarkusio#33352 from alesj/stork_min_fix
Browse files Browse the repository at this point in the history
Fix mutabillity in Stork gRPC channel when fetching Stork services
  • Loading branch information
geoand authored May 15, 2023
2 parents 2beeffb + 56abdd6 commit e03a978
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ private Uni<ServiceInstance> pickServerInstance(Service service, boolean measure
return Uni.createFrom().item(list);
}
})
.map(ArrayList::new) // make it mutable
.invoke(list -> {
// list should not be empty + sort by id
list.sort(Comparator.comparing(ServiceInstance::getId));
Expand Down

0 comments on commit e03a978

Please sign in to comment.