@@ -62,7 +62,11 @@ func ConfigRefreshData(cont context.Context) (err error) {
//
// }
//}
- go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+ if len(edbList) > 0 {
+ go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+ } else {
+ wg.Done()
+ }
}
wg.Wait()