Skip to content

Commit

Permalink
unexport error
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed May 19, 2022
1 parent e3f9f87 commit d6e832d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/client/builder/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
postRegisterValidatorPath = "/eth/v1/builder/validators"
)

var ErrMalformedHostname = errors.New("hostname must include port, separated by one colon, like example.com:3500")
var errMalformedHostname = errors.New("hostname must include port, separated by one colon, like example.com:3500")

// ClientOpt is a functional option for the Client type (http.Client wrapper)
type ClientOpt func(*Client)
Expand Down Expand Up @@ -72,7 +72,7 @@ func urlForHost(h string) (*url.URL, error) {
// try to parse as host:port
host, port, err := net.SplitHostPort(h)
if err != nil {
return nil, ErrMalformedHostname
return nil, errMalformedHostname
}
return &url.URL{Host: fmt.Sprintf("%s:%s", host, port), Scheme: "http"}, nil
}
Expand Down

0 comments on commit d6e832d

Please sign in to comment.