[service] Fix startup race condition

This commit is contained in:
Daniel
2024-08-28 11:52:30 +02:00
parent 113dc0438a
commit c6ddaf8e1e
2 changed files with 7 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ var (
cfgFilterLists []string
)
func registerConfigUpdater() error {
func registerGlobalConfigProfileUpdater() error {
module.instance.Config().EventConfigChange.AddCallback("update global config profile", func(wc *mgr.WorkerCtx, s struct{}) (cancel bool, err error) {
return false, updateGlobalConfigProfile(wc.Ctx())
})