refactor: replace redis runtime and queues with sqlite-backed scheduler
This commit is contained in:
@@ -10,26 +10,15 @@ import (
|
||||
"github.com/assimon/luuu/util/log"
|
||||
)
|
||||
|
||||
// Start 服务启动
|
||||
func Start() {
|
||||
// 配置加载
|
||||
config.Init()
|
||||
// 日志加载
|
||||
log.Init()
|
||||
// // Mysql启动
|
||||
// dao.MysqlInit()
|
||||
// dao.MdbTableInit()
|
||||
// // redis启动
|
||||
// dao.RedisInit()
|
||||
dao.Init()
|
||||
// 队列启动
|
||||
mq.Start()
|
||||
// telegram机器人启动
|
||||
go telegram.BotStart()
|
||||
// 定时任务
|
||||
go task.Start()
|
||||
err := command.Execute()
|
||||
if err != nil {
|
||||
|
||||
if err := command.Execute(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user