fix missing go statement
This commit is contained in:
parent
80e64a3760
commit
2cd01ae736
|
@ -324,7 +324,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
|
||||||
|
|
||||||
wg.Add(2)
|
wg.Add(2)
|
||||||
go e.collectOracleMetrics(wg, ch)
|
go e.collectOracleMetrics(wg, ch)
|
||||||
e.collectStatsMetrics(wg, ch)
|
go e.collectStatsMetrics(wg, ch)
|
||||||
for i := range e.Accounts {
|
for i := range e.Accounts {
|
||||||
wg.Add(5)
|
wg.Add(5)
|
||||||
go e.collectAccountMetrics(wg, ch, &e.Accounts[i])
|
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) {
|
func (e *Exporter) collectAccountTransactionsMetrics(wg *sync.WaitGroup, ch chan<- prometheus.Metric, account *Account) {
|
||||||
defer wg.Done()
|
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
|
// calculations on the deposited and widthdrawn total
|
||||||
account.Tx.UpdateLock.Lock()
|
account.Tx.UpdateLock.Lock()
|
||||||
defer account.Tx.UpdateLock.Unlock()
|
defer account.Tx.UpdateLock.Unlock()
|
||||||
|
|
Reference in New Issue