Skip to content
Snippets Groups Projects
Commit cc295093 authored by LaurenceLiZhixin's avatar LaurenceLiZhixin
Browse files

fix: fix test

parent 1f720d1d
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,10 @@ func (dmj *DoubleMatchJudger) Judge(input float64) bool {
if dmj.Range != nil {
return newDoubleRangeMatchJudger(dmj.Range).Judge(input)
}
if dmj.Mode != 0 {
// todo mod match ??
}
// todo mod match ??
//if dmj.Mode != 0 {
//
//}
return true
}
......
......@@ -69,12 +69,14 @@ func (mmj *MethodMatchJudger) Judge(invocation protocol.Invocation) bool {
}
}
}
if mmj.Argp != nil {
// todo Argp match judge ??? conflict to args?
}
if mmj.Headers != nil {
// todo Headers match judge: reserve for triple
}
// todo Argp match judge ??? conflict to args?
//if mmj.Argp != nil {
//
//}
// todo Headers match judge: reserve for triple
//if mmj.Headers != nil {
//
//}
return true
}
......
......@@ -45,10 +45,8 @@ type RouterChain struct {
// NewUniformRouterChain return
func NewUniformRouterChain(virtualServiceConfig, destinationRuleConfig []byte, notify chan struct{}) (router.PriorityRouter, error) {
uniformRouters := make([]*UniformRouter, 0)
var err error
fromFileConfig := true
uniformRouters, err = parseFromConfigToRouters(virtualServiceConfig, destinationRuleConfig, notify)
uniformRouters, err := parseFromConfigToRouters(virtualServiceConfig, destinationRuleConfig, notify)
if err != nil {
fromFileConfig = false
logger.Warnf("parse router config form local file failed, error = %+v", err)
......@@ -152,9 +150,10 @@ func (r *RouterChain) Process(event *config_center.ConfigChangeEvent) {
}
}
if event.ConfigType == remoting.EventTypeDel {
// todo delete router
}
// todo delete router
//if event.ConfigType == remoting.EventTypeDel {
//
//}
}
// Name get name of ConnCheckerRouter
......
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