Skip to content

Commit 216334b

Browse files
committed
run monitor directly after startup
1 parent 476f2f8 commit 216334b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/codeshelldev/wol-dockerized/internals/server"
1111
"github.com/codeshelldev/wol-dockerized/internals/wol"
1212
)
13+
1314
//s
1415
func main() {
1516
config.Load()
@@ -35,6 +36,8 @@ func main() {
3536
}
3637

3738
go func() {
39+
wol.Monitor(config.ENV.MONITOR_INTERVAL)
40+
3841
ticker := time.NewTicker(time.Duration(config.ENV.MONITOR_INTERVAL) * time.Second)
3942
defer ticker.Stop()
4043

0 commit comments

Comments
 (0)