From bf7300c92a95281c77a80eaab7e31fa6dd2544ae Mon Sep 17 00:00:00 2001 From: wangjian Date: Fri, 21 Apr 2023 10:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84sf=E6=97=B6=EF=BC=8C=E6=8A=A5=E9=94=99=EF=BC=8C?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E8=87=AA=E5=8A=A8=E5=8A=A0=E5=85=A5=E5=88=B0?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=B8=AD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/default.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/router/default.go b/router/default.go index 0e5329c..9f912dd 100644 --- a/router/default.go +++ b/router/default.go @@ -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: