mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-06 10:36: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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var StopCh chan bool
|
var StopCh = make(chan bool)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.Debug("Checking if We are a service")
|
log.Debug("Checking if We are a service")
|
||||||
@@ -47,7 +47,6 @@ func init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
StopCh := make(chan bool)
|
|
||||||
log.Debug("Attempting to start exporter service")
|
log.Debug("Attempting to start exporter service")
|
||||||
if isService {
|
if isService {
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user