优化数据库模块空闲时占有过多cpu

This commit is contained in:
boyce
2019-02-21 12:07:47 +08:00
parent 0095f517de
commit bcace08cf0
4 changed files with 8 additions and 10 deletions

View File

@@ -305,7 +305,6 @@ func (slf *BaseModule) RunModule(module IModule) error {
GetLogger().Printf(LEVER_WARN, "stopping module %s...", fmt.Sprintf("%T", slf))
fmt.Println("stopping module %s...", fmt.Sprintf("%T", slf))
return nil
default:
}
if module.OnRun() == false {
break

View File

@@ -70,7 +70,6 @@ func (slf *CServiceManager) CheckServiceTimeTimeout(exit chan bool, pwaitGroup *
case <-exit:
fmt.Println("CheckServiceTimeTimeout stopping...")
return
default:
}
for _, s := range slf.localserviceMap {