mirror of
https://github.com/shouptech/tempgopher.git
synced 2026-02-03 08:39:43 +00:00
Move a comment
This commit is contained in:
parent
3ba6775d9e
commit
b4960e77ed
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -36,7 +36,6 @@ func main() {
|
||||||
// run is tracking whether or not the thermostats should run
|
// run is tracking whether or not the thermostats should run
|
||||||
run := true
|
run := true
|
||||||
|
|
||||||
// Launch the thermostat go routines
|
|
||||||
sig := make(chan os.Signal)
|
sig := make(chan os.Signal)
|
||||||
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
||||||
signal.Notify(sig, os.Interrupt, syscall.SIGINT)
|
signal.Notify(sig, os.Interrupt, syscall.SIGINT)
|
||||||
|
|
@ -46,6 +45,7 @@ func main() {
|
||||||
run = false
|
run = false
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
// Launch the thermostat go routines
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
for _, sensor := range config.Sensors {
|
for _, sensor := range config.Sensors {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue