Disable routinely pull user
This commit is contained in:
parent
f2d9835765
commit
3a76acfd4f
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue