summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 13:37:00 -0500
committerJeff Carr <[email protected]>2024-10-31 13:37:00 -0500
commit3c520003edb286deec57ce62c447373912787829 (patch)
tree29b819f09a0147f39eba997dab0979698cf68635 /watchdog.go
parent913b18737b9cb25636eea44355ddc680ff1c45c0 (diff)
compiles again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/watchdog.go b/watchdog.go
index 97baac4..ff1c68b 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -4,7 +4,6 @@ import (
"fmt"
"time"
- pb "go.wit.com/lib/protobuf/virtbuf"
"go.wit.com/log"
)
@@ -15,29 +14,6 @@ func TimeFunction(f func()) time.Duration {
return time.Since(startTime) // Calculate the elapsed time
}
-func (h *HyperT) sendDirs() {
- url := "http://" + h.pb.Hostname + ":2520/cluster"
- var msg string
- var data []byte
-
- var c *pb.Cluster
- c = new(pb.Cluster)
- for _, dir := range me.cluster.Dirs {
- c.Dirs = append(c.Dirs, dir)
- }
- msg = c.FormatJSON()
- data = []byte(msg) // Convert the string to []byte
- req, err := httpPost(url, data)
- if err != nil {
- log.Info("error:", err)
- return
- }
- // log.Info("http post url:", url)
- // log.Info("http post data:", msg)
-
- log.Info("EVENT start droplet response: " + string(req))
-}
-
func (h *HyperT) NewWatchdog() {
h.dog = time.NewTicker(me.hyperPollDelay)
defer h.dog.Stop()