zhangzengfei
2024-05-26 379c9650894921633f6a6c8cb5a14f12cef2f6e8
service/resend.go
@@ -9,7 +9,15 @@
   "gat1400Exchange/vo"
)
var resendTaskRunning bool
func ResendImageData() {
   if resendTaskRunning {
      return
   }
   resendTaskRunning = true
   defer func() { resendTaskRunning = false }()
   var cacheMod models.Cache
   total, _ := cacheMod.Count()
   logger.Debug("Start resend task. cache len:%d", total)