Skip to content

Commit

Permalink
miner: add fallthrough for switch cases (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinglin89 authored Mar 24, 2023
1 parent c9a679a commit 390bbe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,9 @@ LOOP:
log.Debug("commitWork abort", "err", err)
return
case errors.Is(err, errBlockInterruptedByRecommit):
fallthrough
case errors.Is(err, errBlockInterruptedByTimeout):
fallthrough
case errors.Is(err, errBlockInterruptedByOutOfGas):
// break the loop to get the best work
log.Debug("commitWork finish", "reason", err)
Expand Down

0 comments on commit 390bbe6

Please sign in to comment.