Skip to content

Commit

Permalink
Remove unused WithTimeout (#11420)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Sep 13, 2022
1 parent 5a1d260 commit 3b8a3c2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api/client/builder/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"net/http"
"net/url"
"text/template"
"time"

"github.com/pkg/errors"
types "github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
Expand All @@ -36,13 +35,6 @@ var errMalformedRequest = errors.New("required request data are missing")
// ClientOpt is a functional option for the Client type (http.Client wrapper)
type ClientOpt func(*Client)

// WithTimeout sets the .Timeout attribute of the wrapped http.Client.
func WithTimeout(timeout time.Duration) ClientOpt {
return func(c *Client) {
c.hc.Timeout = timeout
}
}

type observer interface {
observe(r *http.Request) error
}
Expand Down

0 comments on commit 3b8a3c2

Please sign in to comment.