forked from TrueCloudLab/frostfs-http-gw
[#199] Clear app services list
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
526da379ad
commit
a6fdaf9456
1 changed files with 2 additions and 0 deletions
|
@ -616,6 +616,8 @@ func (a *app) configReload(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *app) startServices() {
|
func (a *app) startServices() {
|
||||||
|
a.services = a.services[:0]
|
||||||
|
|
||||||
pprofConfig := metrics.Config{Enabled: a.cfg.GetBool(cfgPprofEnabled), Address: a.cfg.GetString(cfgPprofAddress)}
|
pprofConfig := metrics.Config{Enabled: a.cfg.GetBool(cfgPprofEnabled), Address: a.cfg.GetString(cfgPprofAddress)}
|
||||||
pprofService := metrics.NewPprofService(a.log, pprofConfig)
|
pprofService := metrics.NewPprofService(a.log, pprofConfig)
|
||||||
a.services = append(a.services, pprofService)
|
a.services = append(a.services, pprofService)
|
||||||
|
|
Loading…
Add table
Reference in a new issue