mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-10 23:16:36 +00:00
Correct Channel Definition
Signed-off-by: Jamie Milton <jammiemil@hotmail.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user