From 3d9b3d6f8ceb942fda29d09a00092a177a7ce882 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 28 Dec 2018 17:56:20 -0800 Subject: [PATCH] Enable builds with go1.11 Since gofmt changed in go1.11 its not possible to run builds for 1.8 and 1.9 anymore, removing them. --- .travis.yml | 4 +--- retry.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4ae1eadf0..7ed7df14e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,7 @@ env: - ARCH=i686 go: -- 1.7.4 -- 1.8.x -- 1.9.x +- 1.11.x - tip matrix: diff --git a/retry.go b/retry.go index 2a7670786..445167b6a 100644 --- a/retry.go +++ b/retry.go @@ -139,7 +139,7 @@ func isS3CodeRetryable(s3Code string) (ok bool) { // List of HTTP status codes which are retryable. var retryableHTTPStatusCodes = map[int]struct{}{ - 429: {}, // http.StatusTooManyRequests is not part of the Go 1.5 library, yet + 429: {}, // http.StatusTooManyRequests is not part of the Go 1.5 library, yet http.StatusInternalServerError: {}, http.StatusBadGateway: {}, http.StatusServiceUnavailable: {},