Correct Channel Definition

Signed-off-by: Jamie Milton <jammiemil@hotmail.com>
This commit is contained in:
Jamie Milton
2022-08-23 16:47:31 +01:00
parent a5f22ebb04
commit f02f51aceb

View File

@@ -39,7 +39,7 @@ loop:
return
}
var StopCh chan bool
var StopCh = make(chan bool)
func init() {
log.Debug("Checking if We are a service")
@@ -47,7 +47,6 @@ func init() {
if err != nil {
log.Fatal(err)
}
StopCh := make(chan bool)
log.Debug("Attempting to start exporter service")
if isService {
go func() {