From 390bbe69c156a82211ad6eafb6e295c703ac89c9 Mon Sep 17 00:00:00 2001 From: Leon <316032931@qq.com> Date: Fri, 24 Mar 2023 10:42:18 +0800 Subject: [PATCH] miner: add fallthrough for switch cases (#1377) --- miner/worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/worker.go b/miner/worker.go index d44187f928..37f458693e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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)