印度包网
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.
 
 
 

16 lines
316 B

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)
})
}