Skip to content

Commit b754a6b

Browse files
committed
fix not work
1 parent 5e0d825 commit b754a6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/core/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ func Core(conf *config.Config) error {
4646
}()
4747
select {
4848
case <-time.After(5 * time.Minute):
49+
go func() {
50+
<-flag
51+
}()
4952
case <-flag:
5053
}
5154
}
5255
group.Wait()
56+
fmt.Println("数据获取完成,正在保存...")
5357
log.SaveData()
58+
fmt.Println("数据保存完成")
5459
return nil
5560
}

0 commit comments

Comments
 (0)