Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions healthcheck/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

// Healthcheck allows to check status of the node
type Healthcheck struct {
url url.URL
url string
userAgent string
}

Expand All @@ -30,7 +30,7 @@ type Status struct {
// Create a new Healthcheck
func NewHealthcheck(url url.URL, userAgent string) *Healthcheck {
return &Healthcheck{
url: url,
url: url.String(),
userAgent: userAgent,
}
}
Expand All @@ -40,7 +40,7 @@ func (h *Healthcheck) Run(ctx context.Context) error {
client := http.Client{
Timeout: 100 * time.Millisecond,
}
req, err := http.NewRequestWithContext(ctx, http.MethodGet, h.url.String(), nil)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, h.url, nil)
if err != nil {
logrus.WithError(err).Error("Error while creating http get request")
return err
Expand Down
Loading