소스 검색

fix:刷新异常的bug

Roc 1 년 전
부모
커밋
b2bccea553
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      services/edb_refresh.go

+ 4 - 0
services/edb_refresh.go

@@ -49,6 +49,10 @@ func ConfigRefreshData(cont context.Context) (err error) {
 	wg.Add(wgNum)
 
 	for _, edbList := range allSourceEdbInfoListMap {
+		if edbList == nil {
+			wg.Done()
+			continue
+		}
 		go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
 	}