Browse Source

del

tags/v1.21.12.1
yuyuanshifu 4 years ago
parent
commit
c552f012ea
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      modules/timer/timer.go

+ 0
- 17
modules/timer/timer.go View File

@@ -2,28 +2,11 @@ package timer

import (
"github.com/robfig/cron/v3"
//"time"

"code.gitea.io/gitea/routers/repo"
)
/*
const (
DecompressTimer = time.Minute * 10
)

*/

func init() {
/*
tiker := time.NewTicker(DecompressTimer)
go func() {
for {
<-ticker.C
repo.HandleUnDecompressAttachment()
}
}()
*/

c := cron.New()
spec := "*/10 * * * *"
c.AddFunc(spec, repo.HandleUnDecompressAttachment)


Loading…
Cancel
Save