summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 05:02:20 -0500
committerJeff Carr <[email protected]>2024-10-31 05:02:20 -0500
commit748f9b4608ccc03f71f40bf961948816a662b1ba (patch)
treee24f78109e3eb9a221e73125b9b54602b82df82b /watchdog.go
parent123f64f56c480c9b40eb88010fe91701c33de0af (diff)
compiles. maybe works on some stuff still
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/watchdog.go b/watchdog.go
index 7a72a54..0849f65 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -1,7 +1,6 @@
package main
import (
- "fmt"
"time"
pb "go.wit.com/lib/protobuf/virtbuf"
@@ -37,27 +36,3 @@ func (h *HyperT) sendDirs() {
log.Info("EVENT start droplet response: " + string(req))
}
-
-func (h *HyperT) NewWatchdog() {
- h.dog = time.NewTicker(me.hyperPollDelay)
- defer h.dog.Stop()
- done := make(chan bool)
- /*
- // this example would exit/destroy the ticker in 10 seconds
- go func() {
- time.Sleep(10 * time.Second)
- done <- true
- }()
- */
- for {
- select {
- case <-done:
- fmt.Println("Done!")
- return
- case t := <-h.dog.C:
- log.Log(POLL, "Watchdog() ticked", h.pb.Hostname, "Current time: ", t)
- // h.pollHypervisor()
- // h.Scan()
- }
- }
-}