Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulat Akhmetzyanov authored and mialinx committed Mar 7, 2023
1 parent 6d5bc94 commit 2e3f044
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ func (app *App) stateFileHandler(ctx context.Context) {
}
}

func (app *App) SetResetupStatus(status bool) {
err := app.setResetupStatus(app.cluster.Local().Host(), status)
func (app *App) SetResetupStatus() {
err := app.setResetupStatus(app.cluster.Local().Host(), app.doesResetupFileExist())
if err != nil {
app.logger.Errorf("recovery: failed to set resetup status: %v", err)
}
Expand All @@ -237,7 +237,7 @@ func (app *App) recoveryChecker(ctx context.Context) {
case <-ticker.C:
app.checkRecovery()
app.checkCrashRecovery()
app.SetResetupStatus(app.doesResetupFileExist())
app.SetResetupStatus()
case <-ctx.Done():
return
}
Expand Down

0 comments on commit 2e3f044

Please sign in to comment.