func init() { revel.Filters = []revel.Filter{ revel.RouterFilter, revel.ParamsFilter, revel.ActionInvoker, } revel.OnAppStart(func() { runtime.GOMAXPROCS(runtime.NumCPU()) db.Init() qbs.ChangePoolSize(MaxConnectionCount) }) }
func init() { revel.Filters = []revel.Filter{ revel.RouterFilter, revel.ParamsFilter, revel.ActionInvoker, } revel.OnAppStart(func() { runtime.GOMAXPROCS(runtime.NumCPU()) db.Init() db.Jet.SetMaxIdleConns(MaxConnectionCount) }) }