Commit 922a73be by Nepxion

增加基于Region的权重流量策略

parent 0580639c
...@@ -342,10 +342,6 @@ public class RouterEndpoint { ...@@ -342,10 +342,6 @@ public class RouterEndpoint {
} }
private int getWeight(String providerRegion, RegionWeightEntity regionWeightEntity) { private int getWeight(String providerRegion, RegionWeightEntity regionWeightEntity) {
if (StringUtils.isEmpty(providerRegion)) {
return -1;
}
if (regionWeightEntity == null) { if (regionWeightEntity == null) {
return -1; return -1;
} }
......
...@@ -152,10 +152,6 @@ public class WeightRandomLoadBalance { ...@@ -152,10 +152,6 @@ public class WeightRandomLoadBalance {
} }
private int getWeight(String providerRegion, RegionWeightEntity regionWeightEntity) { private int getWeight(String providerRegion, RegionWeightEntity regionWeightEntity) {
if (StringUtils.isEmpty(providerRegion)) {
return -1;
}
if (regionWeightEntity == null) { if (regionWeightEntity == null) {
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment