diff --git a/cmd/http-gw/app.go b/cmd/http-gw/app.go index 87047df..906f8d8 100644 --- a/cmd/http-gw/app.go +++ b/cmd/http-gw/app.go @@ -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)