1
0
Fork 0

fix missing go statement

This commit is contained in:
Massaki Archambault 2021-09-26 12:33:19 -04:00
parent 80e64a3760
commit 2cd01ae736
1 changed files with 2 additions and 2 deletions

View File

@ -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()