Skip to content

Commit

Permalink
修改cron 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyi510 committed Jan 24, 2022
1 parent 790a17e commit d56d625
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/handler/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ func (this *handleCron) Run() {
runCount++
log.Println("======================================")
log.Println("开始扫描 第" + strconv.FormatInt(runCount, 10) + "次")
// 判断配置项是否正确
if this.conf.Get("trust_trackers") == nil {
log.Println("请配置 trust_trackers 20s后重试")
log.Println("======================================\r\n\r\n")
time.Sleep(20 * time.Second)
continue
}
// 获取信任的tracker列表
trustTrackers := this.conf.Get("trust_trackers").(string)
// 分割信任的Tracker
Expand Down

0 comments on commit d56d625

Please sign in to comment.