[#199] Clear app services list

Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
Marina Biryukova 2025-01-27 13:16:48 +03:00 committed by Alexey Vanin
parent 526da379ad
commit a6fdaf9456

View file

@ -616,6 +616,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)