diff options
| author | Jeff Carr <[email protected]> | 2024-10-31 13:41:02 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-31 13:41:02 -0500 |
| commit | ec9d4649976e1a37a474db39bb5943e2f57f9b65 (patch) | |
| tree | 3c3e7cfd67d66feb602b72b566f9a31be29c419e /watchdog.go | |
| parent | 748f9b4608ccc03f71f40bf961948816a662b1ba (diff) | |
compiles after protobuf changes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/watchdog.go b/watchdog.go index 0849f65..042e298 100644 --- a/watchdog.go +++ b/watchdog.go @@ -2,9 +2,6 @@ package main import ( "time" - - pb "go.wit.com/lib/protobuf/virtbuf" - "go.wit.com/log" ) // timeFunction takes a function as an argument and returns the execution time. @@ -13,26 +10,3 @@ func TimeFunction(f func()) time.Duration { f() // Execute the function 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)) -} |
