Skip to content

Commit

Permalink
[#1154] adjust router filter priority higher than zoneAware filter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling authored Dec 27, 2023
1 parent 7549f72 commit ccb1c08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public List<ServiceInstance> filter(ServiceInstanceListSupplier supplier, List<S

@Override
public int getOrder() {
return env.getProperty("spring.cloud.loadbalance.filter.zone-aware.order", int.class, -200);
return env.getProperty("spring.cloud.loadbalance.filter.zone-aware.order", int.class, -100);
}

private List<ServiceInstance> zoneAwareDiscoveryFilter(List<ServiceInstance> instances) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public List<ServiceInstance> filter(ServiceInstanceListSupplier supplier, List<S

@Override
public int getOrder() {
return env.getProperty("spring.cloud.loadbalance.filter.router.order", int.class, -100);
return env.getProperty("spring.cloud.loadbalance.filter.router.order", int.class, -200);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public List<ServiceInstance> filter(ServiceInstanceListSupplier supplier, List<S

@Override
public int getOrder() {
return env.getProperty("spring.cloud.loadbalance.filter.router.order", int.class, -100);
return env.getProperty("spring.cloud.loadbalance.filter.router.order", int.class, -200);
}
}

0 comments on commit ccb1c08

Please sign in to comment.