From 98fe21d83a2717ee78342f033e1d9edc583b2801 Mon Sep 17 00:00:00 2001 From: liuhuajian Date: Thu, 21 Sep 2023 14:52:17 +0800 Subject: [PATCH] fix: Remove duplicate definitions Signed-off-by: liuhuajian --- internal/core/data/application/app.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/core/data/application/app.go b/internal/core/data/application/app.go index fc30fea721..bf5f7faadf 100644 --- a/internal/core/data/application/app.go +++ b/internal/core/data/application/app.go @@ -58,7 +58,6 @@ func NewCoreDataApp(dic *di.Container) *CoreDataApp { } app.lc.Infof("Registered metrics counter %s", eventsPersistedMetricName) - app.readingsPersistedCounter = gometrics.NewCounter() if err := metricsManager.Register(readingsPersistedMetricName, app.readingsPersistedCounter, nil); err != nil { app.lc.Errorf("%s metrics will not be collected: %s", readingsPersistedMetricName, err.Error()) }