mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-15 08:14:46 +08:00
优化数据库模块空闲时占有过多cpu
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user