1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

cmd/thalos/main.go: have running variable be set to true on initialization.

No point setting it in readerLoop() as its only used to exit the application, as soon as its set to false. the application should exit as soon as possible.
This commit is contained in:
Henrik Hautakoski 2023-12-06 15:30:09 +01:00
parent 24bf44a175
commit 7b1b500b22

View file

@ -39,14 +39,13 @@ var conf *config.Config
var shClient *shipclient.Stream
var running bool = false
var running bool = true
var VersionString string = "dev"
var exit chan bool
func readerLoop(processor *app.ShipProcessor) {
running = true
recon_cnt := 0
exp := &backoff.ExponentialBackOff{