Skip to content

Commit

Permalink
reduced number of metric objects
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Nov 26, 2024
1 parent b24db27 commit 82c3ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (c *Chain) GetTransaction(id thor.Bytes32) (*tx.Transaction, *TxMeta, error
if err != nil {
return nil, nil, err
}
metricTransactionReadCounter().Add(1)
metricTransactionRepositoryCounter().AddWithLabel(1, map[string]string{"type": "read"})
return tx, txMeta, nil
}

Expand All @@ -257,7 +257,7 @@ func (c *Chain) GetTransactionReceipt(txID thor.Bytes32) (*tx.Receipt, error) {
if err != nil {
return nil, err
}
metricReceiptReadCounter().Add(1)
metricReceiptRepositoryCounter().AddWithLabel(1, map[string]string{"type": "read"})
return receipt, nil
}

Expand Down

0 comments on commit 82c3ddc

Please sign in to comment.