From 60f23a59208c59b763410eb8f7795157ce82b11a Mon Sep 17 00:00:00 2001 From: panda <18610165312@163.com> Date: Wed, 12 Jun 2024 20:56:57 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iothub/netbase/hook_base.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/iothub/netbase/hook_base.go b/iothub/netbase/hook_base.go index 6a0922f..8e19acd 100644 --- a/iothub/netbase/hook_base.go +++ b/iothub/netbase/hook_base.go @@ -55,12 +55,6 @@ func Auth(authToken string) bool { // SubAuth 获取子设备的认证信息 func SubAuth(name string) (*model.DeviceAuth, bool) { - defer func() { - if Rerr := recover(); Rerr != nil { - global.Log.Error(Rerr) - return - } - }() etoken := &model.DeviceAuth{} // redis 中有就查询,没有就添加 exists := cache.ExistsDeviceEtoken(name) @@ -94,13 +88,6 @@ func CreateSubTableField(productId, ty string, fields map[string]interface{}) { for key, value := range fields { group.Add(1) go func(key string, value any) { - defer func() { - group.Done() - if err := recover(); err != nil { - global.Log.Error("自动创建tsl错误", err) - global.TdDb.DelTableField(productId+"_"+ty, key) - } - }() if key == "ts" { return }