Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cce authored Jun 6, 2024
1 parent 844d272 commit f833ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/txHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ func (handler *TxHandler) processIncomingTxn(rawmsg network.IncomingMessage) net
// if we failed to put the item onto the backlog, we should release the capacity if any
if !accepted {
if capguard != nil {
if err := capguard.Release(); err != nil {
logging.Base().Warnf("Failed to release capacity to ElasticRateLimiter: %v", err)
if capErr := capguard.Release(); capErr != nil {
logging.Base().Warnf("Failed to release capacity to ElasticRateLimiter: %v", capErr)
}
}
}
Expand Down

0 comments on commit f833ab3

Please sign in to comment.