- big refactor.

This commit is contained in:
gazebo
2018-07-05 12:21:25 +08:00
parent c43ec48837
commit bed727d3e5
21 changed files with 140 additions and 115 deletions

15
legacy/legacy.go Normal file
View File

@@ -0,0 +1,15 @@
package legacy
import (
"git.rosy.net.cn/baseapi/utils/routinepool"
"github.com/astaxie/beego"
)
var (
RoutinePool *routinepool.Pool
)
func init() {
routinePoolSize := beego.AppConfig.DefaultInt("routinePoolSize", 0)
RoutinePool = routinepool.New(routinePoolSize, routinePoolSize)
}