revert(config): added back pointer for agent and notification config for correct unmarshaling

This commit is contained in:
yusing
2025-10-10 10:07:49 +08:00
parent c89c737ecd
commit 9bf7a0beef
2 changed files with 9 additions and 9 deletions

View File

@@ -197,7 +197,7 @@ func (state *state) initNotification() error {
dispatcher := notif.StartNotifDispatcher(state.task)
for _, notifier := range notifCfg {
dispatcher.RegisterProvider(&notifier)
dispatcher.RegisterProvider(notifier)
}
return nil
}
@@ -279,8 +279,8 @@ func (state *state) loadRouteProviders() error {
errs.Add(gperr.PrependSubject(a.String(), err))
return
}
agent.AddAgent(&a)
p := route.NewAgentProvider(&a)
agent.AddAgent(a)
p := route.NewAgentProvider(a)
providersCh <- p
})
}