From 7b1b500b22b320bf75c9b56bf36f9f985cb4f1ac Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 6 Dec 2023 15:30:09 +0100 Subject: [PATCH] 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. --- cmd/thalos/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/thalos/main.go b/cmd/thalos/main.go index 431d75d..4278365 100644 --- a/cmd/thalos/main.go +++ b/cmd/thalos/main.go @@ -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{