From ace0492e81d7e70e99e1bd577113cd91f0ba9de4 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 3 Aug 2023 10:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/cache/groupPower_c/group_power_grade.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/domain/cache/groupPower_c/group_power_grade.go b/domain/cache/groupPower_c/group_power_grade.go index ce2a446..ef4ea4d 100644 --- a/domain/cache/groupPower_c/group_power_grade.go +++ b/domain/cache/groupPower_c/group_power_grade.go @@ -4,6 +4,7 @@ import ( "encoding/json" "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/resource/mysql" + "github.com/go-redis/redis/v8" "hilo-group/_const/redis_key/groupPower_k" "time" ) @@ -36,7 +37,9 @@ func BLPopGroupPowerGradeExp(model *domain.Model) *GroupPowerGradeExp { queue := groupPower_k.GetGroupPowerGradeExpQueue() strs, err := model.Redis.BLPop(model, time.Second, queue).Result() if err != nil { - model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err) + if err != redis.Nil { + model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err) + } return nil } if len(strs) >= 2 { -- 2.22.0