调整定时器间隔至30秒
This commit is contained in:
@@ -34,7 +34,7 @@ func Start() {
|
|||||||
|
|
||||||
taskList["stopChannels"] = stopChannels
|
taskList["stopChannels"] = stopChannels
|
||||||
|
|
||||||
ticker := time.NewTicker(time.Second)
|
ticker := time.NewTicker(30 * time.Second)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
// 互斥锁确保同一时间只有一个协程运行
|
// 互斥锁确保同一时间只有一个协程运行
|
||||||
|
|||||||
Reference in New Issue
Block a user