[#198] Clear app services list
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
990e0c2c2e
commit
03c2569e18
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue