Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdkeil committed May 7, 2024
1 parent a27ecbc commit 3234a2b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions provider/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,29 +156,6 @@ func (p *HTTP) WithAuth(typ, user, password string) (*HTTP, error) {
return p, nil
}

/*
// request executes the configured request or returns the cached value
func (p *HTTP) request(url string, body ...string) ([]byte, error) {
if time.Since(p.updated) >= p.cache {
var b io.Reader
if len(body) == 1 {
b = strings.NewReader(body[0])
}
// empty method becomes GET
req, err := request.New(strings.ToUpper(p.method), url, b, p.headers)
if err != nil {
return []byte{}, err
}
p.val, p.err = p.DoBody(req)
p.updated = time.Now()
}
return p.val, p.err
}
*/

// request executes the configured request or returns the cached value
func (p *HTTP) request(url string, body ...string) ([]byte, error) {
if time.Since(p.updated) >= p.cache {
Expand Down

0 comments on commit 3234a2b

Please sign in to comment.