Skip to content

Commit

Permalink
fix: endless kafka initialisation loop
Browse files Browse the repository at this point in the history
  • Loading branch information
butschi84 committed Dec 3, 2023
1 parent 5a57bae commit dbc041f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions f2soperator/operation/kafka/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"butschi84/f2s/hub"
"butschi84/f2s/services/logger"
"fmt"
"time"
)

var logging logger.F2SLogger
Expand All @@ -18,9 +19,8 @@ func Initialize(hub *hub.F2SHub) {
f2shub = hub

// check if kafka integration is enabled in config
if !hub.F2SConfiguration.Config.F2S.Kafka.Enabled {
logging.Info("kafka integration is disabled via config")
return
for !hub.F2SConfiguration.Config.F2S.Kafka.Enabled {
time.Sleep(10 * time.Second)
}

// get all configured kafka listeners
Expand Down

0 comments on commit dbc041f

Please sign in to comment.