You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
316 B
17 lines
316 B
|
1 year ago
|
package call
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/util"
|
||
|
|
"time"
|
||
|
|
|
||
|
|
timewheel "github.com/liangdas/mqant/module/modules/timer"
|
||
|
|
)
|
||
|
|
|
||
|
|
func InitTimeWheel(closeSig chan bool) {
|
||
|
|
timewheel.GetTimeWheel().Stop()
|
||
|
|
timewheel.SetTimeWheel(timewheel.New(100*time.Millisecond, 36))
|
||
|
|
util.Go(func() {
|
||
|
|
timewheel.GetTimeWheel().Start(closeSig)
|
||
|
|
})
|
||
|
|
}
|