Skip to content

Commit

Permalink
refactor: start doesnt need the err state
Browse files Browse the repository at this point in the history
  • Loading branch information
benwaples committed Apr 2, 2024
1 parent 970c6c7 commit e81ef5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ func ingest(ctx context.Context, bheUrl url.URL, bheClient *http.Client, in <-ch
func do(bheClient *http.Client, req *http.Request) (*http.Response, error) {
var (
res *http.Response
err error
maxRetries = 3
)

Expand Down Expand Up @@ -313,7 +312,7 @@ func do(bheClient *http.Client, req *http.Request) (*http.Response, error) {
}
}

return nil, fmt.Errorf("unable to complete request to url=%s; attempts=%d; ERR=%w", req.URL, maxRetries, err)
return nil, fmt.Errorf("unable to complete request to url=%s; attempts=%d;", req.URL, maxRetries)
}

type basicResponse[T any] struct {
Expand Down

0 comments on commit e81ef5d

Please sign in to comment.