Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
055d5a44
Commit
055d5a44
authored
Jul 27, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用户自定义和编程灰度路由策略
parent
4c7291cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/enable/DiscoveryEnabledPredicate.java
+1
-3
No files found.
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/enable/DiscoveryEnabledPredicate.java
View file @
055d5a44
...
@@ -9,8 +9,6 @@ package com.nepxion.discovery.plugin.strategy.extension.enable;
...
@@ -9,8 +9,6 @@ package com.nepxion.discovery.plugin.strategy.extension.enable;
* @version 1.0
* @version 1.0
*/
*/
import
javax.annotation.Nullable
;
import
com.nepxion.discovery.plugin.strategy.extension.context.StrategyContext
;
import
com.nepxion.discovery.plugin.strategy.extension.context.StrategyContext
;
import
com.nepxion.discovery.plugin.strategy.extension.context.StrategyContextHolder
;
import
com.nepxion.discovery.plugin.strategy.extension.context.StrategyContextHolder
;
import
com.netflix.loadbalancer.AbstractServerPredicate
;
import
com.netflix.loadbalancer.AbstractServerPredicate
;
...
@@ -21,7 +19,7 @@ public class DiscoveryEnabledPredicate extends AbstractServerPredicate {
...
@@ -21,7 +19,7 @@ public class DiscoveryEnabledPredicate extends AbstractServerPredicate {
private
DiscoveryEnabledAdapter
discoveryEnabledAdapter
;
private
DiscoveryEnabledAdapter
discoveryEnabledAdapter
;
@Override
@Override
public
boolean
apply
(
@Nullable
PredicateKey
input
)
{
public
boolean
apply
(
PredicateKey
input
)
{
return
input
!=
null
&&
apply
(
input
.
getServer
());
return
input
!=
null
&&
apply
(
input
.
getServer
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment