修改未定义的sf时,报错,目前自动加入到路由中;
This commit is contained in:
		
							parent
							
								
									a4ea724bab
								
							
						
					
					
						commit
						bf7300c92a
					
				|  | @ -2,7 +2,6 @@ | ||||||
| package router | package router | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"fmt" |  | ||||||
| 	"sync" | 	"sync" | ||||||
| 
 | 
 | ||||||
| 	"git.hpds.cc/Component/network/frame" | 	"git.hpds.cc/Component/network/frame" | ||||||
|  | @ -60,7 +59,11 @@ func (r *defaultRoute) Add(connId string, name string, observeDataTags []frame.T | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	if !ok { | 	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:
 | 	//LOOP:
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue