修改未定义的sf时,报错,目前自动加入到路由中;
This commit is contained in:
		
							parent
							
								
									a4ea724bab
								
							
						
					
					
						commit
						bf7300c92a
					
				|  | @ -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:
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue