Skip to content

Commit

Permalink
Useless goroutine fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noname0443 committed Sep 24, 2023
1 parent e9cab97 commit c987e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,9 @@ func (app *App) Run() int {
go app.healthChecker(ctx)
go app.recoveryChecker(ctx)
go app.stateFileHandler(ctx)
go app.externalCAFileChecker(ctx)
if app.config.ExternalReplicationType != util.Disabled {
go app.externalCAFileChecker(ctx)
}

handlers := map[appState](func() appState){
stateFirstRun: app.stateFirstRun,
Expand Down

0 comments on commit c987e0a

Please sign in to comment.