Skip to content

Commit

Permalink
🧹 client: remove beta warning
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Jun 28, 2022
1 parent 43aa457 commit 12452dd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client.go
Expand Up @@ -738,14 +738,9 @@ func (a *Agent) RetryIf(retryIf RetryIfFunc) *Agent {
}

/************************** End Agent Setting **************************/
var warnOnce sync.Once

// Bytes returns the status code, bytes body and errors of url.
func (a *Agent) Bytes() (code int, body []byte, errs []error) {
warnOnce.Do(func() {
fmt.Println("[Warning] client is still in beta, API might change in the future!")
})

defer a.release()

if errs = append(errs, a.errs...); len(errs) > 0 {
Expand Down

0 comments on commit 12452dd

Please sign in to comment.