Commit 055d5a44 by Nepxion

新增用户自定义和编程灰度路由策略

parent 4c7291cf
......@@ -9,8 +9,6 @@ package com.nepxion.discovery.plugin.strategy.extension.enable;
* @version 1.0
*/
import javax.annotation.Nullable;
import com.nepxion.discovery.plugin.strategy.extension.context.StrategyContext;
import com.nepxion.discovery.plugin.strategy.extension.context.StrategyContextHolder;
import com.netflix.loadbalancer.AbstractServerPredicate;
......@@ -21,7 +19,7 @@ public class DiscoveryEnabledPredicate extends AbstractServerPredicate {
private DiscoveryEnabledAdapter discoveryEnabledAdapter;
@Override
public boolean apply(@Nullable PredicateKey input) {
public boolean apply(PredicateKey input) {
return input != null && apply(input.getServer());
}
......
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