summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
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()
- }
- }
-}