diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 07:17:28 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 07:17:28 -0600 |
| commit | 58ad49600aa3edc0d020a4ae4cd6d80a6347a730 (patch) | |
| tree | 5eb32646b56c8beb642369821507b8befa25231c /send.go | |
| parent | 2152a6477fc93581948ef42acea72bb97b7aae49 (diff) | |
Diffstat (limited to 'send.go')
| -rw-r--r-- | send.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -13,9 +13,9 @@ import ( func pingStatus() error { var url string - url = me.urlbase + "/status?hostname=" + me.forge.Machine.Hostname + url = me.urlbase + "/status?hostname=" + me.machine.Hostname /* - msg, err := me.forge.Machine.Packages.Marshal() + msg, err := me.machine.Packages.Marshal() if err != nil { log.Info("proto.Marshal() failed:", err) return err @@ -23,7 +23,7 @@ func pingStatus() error { log.Info("proto Marshal len =", len(msg)) */ - body, err := me.forge.HttpPostMachine(url) + body, err := me.machine.HttpPostMachine(url) if err != nil { log.Info("httpPost() failed:", err) return err @@ -45,7 +45,7 @@ func pingStatus() error { func sendMachine(s string) error { var url string url = me.urlbase + "/machine" - body, err := me.forge.HttpPostMachine(url) + body, err := me.machine.HttpPostMachine(url) if err != nil { log.Info("httpPost() failed: url", url) log.Info("httpPost() failed:", err) @@ -71,7 +71,7 @@ func sendMachine(s string) error { os.Exit(0) } else { log.Info(me.urlbase, "is maybe not working GOT:", line) - log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.forge.Machine.Hostname) + log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.machine.Hostname) } } return nil |
