From 2cd01ae7363e08d8a90d6d3373c77c892ad9a79d Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Sun, 26 Sep 2021 12:33:19 -0400 Subject: [PATCH] fix missing go statement --- exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter.go b/exporter.go index fa8104b..012ab55 100644 --- a/exporter.go +++ b/exporter.go @@ -324,7 +324,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { wg.Add(2) go e.collectOracleMetrics(wg, ch) - e.collectStatsMetrics(wg, ch) + go e.collectStatsMetrics(wg, ch) for i := range e.Accounts { wg.Add(5) go e.collectAccountMetrics(wg, ch, &e.Accounts[i]) @@ -448,7 +448,7 @@ func (e *Exporter) collectAccountRewardsTotalMetrics(wg *sync.WaitGroup, ch chan func (e *Exporter) collectAccountTransactionsMetrics(wg *sync.WaitGroup, ch chan<- prometheus.Metric, account *Account) { defer wg.Done() - // we can only ever allow a single instance of the routine doing + // we can only want to allow a single instance of the routine doing // calculations on the deposited and widthdrawn total account.Tx.UpdateLock.Lock() defer account.Tx.UpdateLock.Unlock()