Skip to content

Commit

Permalink
add default priority 0 for condition url which neither application no…
Browse files Browse the repository at this point in the history
…r service level router
  • Loading branch information
william feng committed Aug 7, 2020
1 parent 740be76 commit d38421d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/router/condition/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ func NewConditionRouter(url *common.URL) (*ConditionRouter, error) {
var defaultPriority int64
if url.GetParam(constant.APPLICATION_KEY, "") != "" {
defaultPriority = 150
} else {
} else if url.GetParam(constant.INTERFACE_KEY, "") != ""{
defaultPriority = 140
} else {
defaultPriority = 0
}
router.priority = url.GetParamInt(constant.RouterPriority, defaultPriority)
router.Force = url.GetParamBool(constant.RouterForce, false)
Expand Down

0 comments on commit d38421d

Please sign in to comment.