mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-31 10:36:36 +08:00
WAF参数定义增加优先级,可以让“轻”任务优先执行
This commit is contained in:
@@ -73,6 +73,7 @@ func (this *WAF) Init() (resultErrors []error) {
|
||||
for _, def := range checkpoints.AllCheckpoints {
|
||||
instance := reflect.New(reflect.Indirect(reflect.ValueOf(def.Instance)).Type()).Interface().(checkpoints.CheckpointInterface)
|
||||
instance.Init()
|
||||
instance.SetPriority(def.Priority)
|
||||
this.checkpointsMap[def.Prefix] = instance
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user