删掉原来的定时采集线程
This commit is contained in:
@@ -89,7 +89,6 @@ func (app *Application) Start() error {
|
||||
|
||||
// 3. 启动后台工作协程
|
||||
app.Domain.Scheduler.Start()
|
||||
app.Domain.TimedCollector.Start()
|
||||
|
||||
// 4. 启动 API 服务器
|
||||
app.API.Start()
|
||||
@@ -113,9 +112,6 @@ func (app *Application) Stop() error {
|
||||
// 关闭任务执行器
|
||||
app.Domain.Scheduler.Stop()
|
||||
|
||||
// 关闭定时采集器
|
||||
app.Domain.TimedCollector.Stop()
|
||||
|
||||
// 断开数据库连接
|
||||
if err := app.Infra.Storage.Disconnect(); err != nil {
|
||||
app.Logger.Errorw("数据库连接断开失败", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user