Skip to content

Commit

Permalink
Decrease bank send metric to 5m
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsu522 committed Sep 1, 2023
1 parent 9254dda commit 8ba475c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ func (s EventCollector) HandleBankTransferEvent(eventItem *coretypes.EventItem)
"sender": sender,
"recipient": recipient,
}).Add(amount)
// Expire the metrics after sufficient investigation (3 days)
// Expire the metrics after 5 minutes
go func() {
time.Sleep(3 * 24 * time.Hour)
time.Sleep(5 * time.Minute)
s.counter.Delete(prometheus.Labels{
"denom": denom,
"sender": sender,
Expand Down

0 comments on commit 8ba475c

Please sign in to comment.