Skip to content

Commit

Permalink
Fix the issue where the sticky logic affects the load balancing algor…
Browse files Browse the repository at this point in the history
…ithm, causing it to not work properly.
  • Loading branch information
hexiaofeng committed May 30, 2024
1 parent cee0cb6 commit 9d78929
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public <T extends ServiceRequest.OutboundRequest> void filter(OutboundInvocation
if (!target.isEmpty()) {
List<? extends Endpoint> candidates = stickyType == StickyType.PREFERRED
? preferSticky(target)
: target.getEndpoints();
: null;
if (candidates != null && !candidates.isEmpty()) {
target.setEndpoints(candidates);
} else {
Expand Down

0 comments on commit 9d78929

Please sign in to comment.