Address PR Comments 1

This commit is contained in:
Phillip Wittrock
2016-05-09 15:57:08 -07:00
parent 75417ba3e4
commit 3d08c73767
2 changed files with 6 additions and 8 deletions

View File

@@ -225,7 +225,7 @@ type URLVisitor struct {
}
func (v *URLVisitor) Visit(fn VisitorFunc) error {
body, err := v.readHttpWithRetries(httpgetImpl, time.Second, v.URL.String())
body, err := readHttpWithRetries(httpgetImpl, time.Second, v.URL.String())
if err != nil {
return err
}
@@ -235,7 +235,7 @@ func (v *URLVisitor) Visit(fn VisitorFunc) error {
}
// readHttpWithRetries tries to http.Get the v.URL 3 times before giving up.
func (v *URLVisitor) readHttpWithRetries(get httpget, duration time.Duration, u string) (io.ReadCloser, error) {
func readHttpWithRetries(get httpget, duration time.Duration, u string) (io.ReadCloser, error) {
var err error
var body io.ReadCloser
for i := 0; i < 3; i++ {