소스 검색

优化查询

tuoling805 1 년 전
부모
커밋
5bf32559ad
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      services/init_calculate_index.go

+ 4 - 1
services/init_calculate_index.go

@@ -75,7 +75,10 @@ func InitCalculateIndex() {
 		if rk <= 0 {
 			continue
 		}
-		time.Sleep(1 * time.Second)
+
+		if rk%10 == 0 {
+			time.Sleep(3 * time.Second)
+		}
 		var indexCode string
 		for ck, colCell := range row {
 			switch ck {