Skip to content

Commit

Permalink
Added err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Oct 18, 2024
1 parent bf4d8e8 commit ef8d3af
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ func (c *CollectionExecutedMetricImpl) BlockFinalized(block *flow.Block) {

for _, t := range l.Transactions {
c.accessMetrics.TransactionFinalized(t, now)
c.blockTransactions.Append(blockID, t)
err = c.blockTransactions.Append(blockID, t)

if err != nil {
c.log.Warn().Err(err).Msg("could not append finalized tx to track sealed transactions")
continue
}
}
}

Expand Down

0 comments on commit ef8d3af

Please sign in to comment.