mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 10:40:25 +08:00
简化数据库查询代码
This commit is contained in:
@@ -84,7 +84,7 @@ func (this *LogTask) loopClean(seconds int64) error {
|
||||
func (this *LogTask) runMonitor() {
|
||||
ticker := utils.NewTicker(1 * time.Minute)
|
||||
for ticker.Wait() {
|
||||
err := this.loopClean(60)
|
||||
err := this.loopMonitor(60)
|
||||
if err != nil {
|
||||
logs.Println("[TASK][LOG]" + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user