go beetle: use blocking GET requests
MODIFY
go/consul/consul.go
go/consul/consul.go
@@ -146,7 +146,7 @@ func (c *Client) GetDataCenters() error {
// GetData loads a key/value space from consul
func (c *Client) GetData(space *Space, useIndex bool) error {
- client := &http.Client{Timeout: time.Second * 60}
+ client := &http.Client{}
fullUrl := c.kvUrl(space.prefix) + "?recurse"
if useIndex {
fullUrl += "&index=" + strconv.Itoa(space.modifyIndex)
@@ -156,7 +156,7 @@ func (c *Client) GetData(space *Space, useIndex bool) error {
}
req, err := http.NewRequest(http.MethodGet, fullUrl, nil)
if err != nil {
- return errors.Wrapf(err, "PUT %q failed", fullUrl)
+ return errors.Wrapf(err, "GET %q failed", fullUrl)
}
if c.consulToken != "" {
req.Header.Set("X-Consul-Token", c.consulToken)

MODIFY
go/version.go
go/version.go
@@ -6,7 +6,7 @@ import (
)
// BEETLE_VERSION is displayed in the web UI and can be checked using beetle --version.
-const BEETLE_VERSION = "3.0.3"
+const BEETLE_VERSION = "3.0.4"
// ReportVersionIfRequestedAndExit checks os.Args for the string --version,
// prints the version if found and then exits.

go beetle: use blocking GET requests