[#198] Clear app services list

Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
Marina Biryukova 2025-01-27 13:10:48 +03:00
parent 990e0c2c2e
commit 03c2569e18

View file

@ -615,6 +615,8 @@ func (a *app) configReload(ctx context.Context) {
}
func (a *app) startServices() {
a.services = a.services[:0]
pprofConfig := metrics.Config{Enabled: a.cfg.GetBool(cfgPprofEnabled), Address: a.cfg.GetString(cfgPprofAddress)}
pprofService := metrics.NewPprofService(a.log, pprofConfig)
a.services = append(a.services, pprofService)