Compare commits

...

1 Commits

Author SHA1 Message Date
wangjian bf7300c92a 修改未定义的sf时,报错,目前自动加入到路由中; 2023-04-21 10:49:59 +08:00
1 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,6 @@
package router
import (
"fmt"
"sync"
"git.hpds.cc/Component/network/frame"
@ -60,7 +59,11 @@ func (r *defaultRoute) Add(connId string, name string, observeDataTags []frame.T
}
}
if !ok {
return fmt.Errorf("SFN[%s] does not exist in config functions", name)
//return fmt.Errorf("SFN[%s] does not exist in config functions", name)
//item := config.App{
// Name: name,
//}
r.functions = append(r.functions, name)
}
//LOOP: