Skip to content

Commit

Permalink
check if not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
miagilepner committed Jan 9, 2025
1 parent 55ca52f commit fd9ed45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions physical/raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,9 @@ func (b *RaftBackend) StartRemovedChecker(ctx context.Context) {
for {
select {
case <-ticker.C:
if !b.Initialized() {
return
}
removed, err := b.IsNodeRemoved(ctx, b.localID)
if err != nil {
logger.Error("failed to check if node is removed", "node ID", b.localID, "error", err)
Expand Down

0 comments on commit fd9ed45

Please sign in to comment.