配置变更的时候自动同步,不再需要手工点击同步

This commit is contained in:
GoEdgeLab
2020-11-18 10:07:29 +08:00
parent b9edc0ce8a
commit a09e8be6e9
10 changed files with 134 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ package nodes
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configs"
"github.com/TeaOSLab/EdgeAdmin/internal/errors"
"github.com/TeaOSLab/EdgeAdmin/internal/events"
"github.com/iwind/TeaGo"
"github.com/iwind/TeaGo/Tea"
"github.com/iwind/TeaGo/logs"
@@ -50,6 +51,9 @@ func (this *AdminNode) Run() {
}
}()
// 触发事件
events.Notify(events.EventStart)
// 启动API节点
this.startAPINode()