فهرست منبع

wip:移除日志

wangshan 1 سال پیش
والد
کامیت
a06e094d65
1فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 1 6
      src/jfw/front/tags.go

+ 1 - 6
src/jfw/front/tags.go

@@ -511,23 +511,18 @@ func (this *Tags) GetNewBidInfo() (list []map[string]interface{}) {
 	list = bidInfosByCache(redisKey)
 	list = bidInfosByCache(redisKey)
 	if len(list) == 0 {
 	if len(list) == 0 {
 		list = bidInfosByCache(redisKeySL)
 		list = bidInfosByCache(redisKeySL)
-		var cacheBool bool
 		for {
 		for {
-			log.Println("------------------05---------", ri)
 			if redisLock.TryLock() {
 			if redisLock.TryLock() {
 				if len(list) == 0 {
 				if len(list) == 0 {
 					list = newBidInfos()
 					list = newBidInfos()
 				}
 				}
-				log.Println(len(list), "------------------06---------", ri)
 				if len(list) > 0 {
 				if len(list) > 0 {
 					bidInfosToCache(list)
 					bidInfosToCache(list)
-					cacheBool = true
 				}
 				}
 				redisLock.Unlock()
 				redisLock.Unlock()
 			}
 			}
-			log.Println(cacheBool, "------------------07---------", ri)
 			ri++
 			ri++
-			if (len(list) > 0 && cacheBool) || ri >= rn {
+			if len(list) > 0 || ri >= rn {
 				break
 				break
 			}
 			}
 			time.Sleep(100 * time.Millisecond)
 			time.Sleep(100 * time.Millisecond)