Skip to content

Commit

Permalink
support restart when halt (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhinei authored Apr 22, 2024
1 parent 2726902 commit 3e9baae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sequencer/finalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"math/big"
"os"
"strings"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -842,6 +843,7 @@ func (f *finalizer) Halt(ctx context.Context, err error, isFatal bool) {
seqMetrics.HaltCount()
log.Errorf("halting finalizer, error: %v", err)
time.Sleep(5 * time.Second) //nolint:gomnd
os.Exit(1)
}
}
}
Expand Down

0 comments on commit 3e9baae

Please sign in to comment.