From 76ca0ca4a02ddb497895f2e85f39226a9d143496 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 24 Jan 2019 16:44:53 +0100 Subject: [PATCH] Revert "debug should retry" This reverts commit c943ff00a20478b9ff01e257c72360928ebcbcbb. --- vendor/github.com/aws/aws-sdk-go/aws/request/request.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go index 2cf0e6d87..8f2eb3e43 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "log" "net/http" "net/url" "reflect" @@ -566,10 +565,7 @@ type temporary interface { Temporary() bool } -func shouldRetryCancel(err error) (shouldRetry bool) { - defer func() { - log.Printf("shouldRetry returned %t with %#v", shouldRetry, err) - }() +func shouldRetryCancel(err error) bool { switch err := err.(type) { case awserr.Error: if err.Code() == CanceledErrorCode {