소스 검색

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)
 	if len(list) == 0 {
 		list = bidInfosByCache(redisKeySL)
-		var cacheBool bool
 		for {
-			log.Println("------------------05---------", ri)
 			if redisLock.TryLock() {
 				if len(list) == 0 {
 					list = newBidInfos()
 				}
-				log.Println(len(list), "------------------06---------", ri)
 				if len(list) > 0 {
 					bidInfosToCache(list)
-					cacheBool = true
 				}
 				redisLock.Unlock()
 			}
-			log.Println(cacheBool, "------------------07---------", ri)
 			ri++
-			if (len(list) > 0 && cacheBool) || ri >= rn {
+			if len(list) > 0 || ri >= rn {
 				break
 			}
 			time.Sleep(100 * time.Millisecond)