From c987e0a2c98c0d7184bf7e69ab946dcf80689173 Mon Sep 17 00:00:00 2001 From: Evgeniy Date: Sun, 24 Sep 2023 23:23:23 +0300 Subject: [PATCH] Useless goroutine fix --- internal/app/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 6acb7ab2..66f29f17 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -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,