mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-31 23:56:36 +08:00
实现缓存策略部分管理功能
This commit is contained in:
@@ -78,6 +78,7 @@ func (this *NodeConfig) AvailableGroups() []*serverconfigs.ServerGroup {
|
||||
}
|
||||
|
||||
func (this *NodeConfig) Init() error {
|
||||
// servers
|
||||
for _, server := range this.Servers {
|
||||
err := server.Init()
|
||||
if err != nil {
|
||||
@@ -85,6 +86,14 @@ func (this *NodeConfig) Init() error {
|
||||
}
|
||||
}
|
||||
|
||||
// global config
|
||||
if this.GlobalConfig != nil {
|
||||
err := this.GlobalConfig.Init()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user