Disable routinely pull user

This commit is contained in:
cyp0633 2022-11-27 00:33:11 +08:00
parent f2d9835765
commit 3a76acfd4f
Signed by: cyp0633
GPG Key ID: CF90D09FB1FDCE45
1 changed files with 1 additions and 9 deletions

View File

@ -7,8 +7,6 @@ import (
func init() {
c := cron.New()
// c.AddFunc("@every 4s", tryUser)
// time.Sleep(500 * time.Millisecond) // 防止命令执行撞车
c.AddFunc("@every 2s", tryPull)
c.Start()
}
@ -18,10 +16,4 @@ func tryPull() {
if conn != nil {
DoPull()
}
}
func tryUser() {
if conn != nil {
DoUser()
}
}
}