Revert "debug should retry"

This reverts commit c943ff00a2.
This commit is contained in:
Adrien Delorme 2019-01-24 16:44:53 +01:00
parent 09ceef758b
commit 76ca0ca4a0
1 changed files with 1 additions and 5 deletions

View File

@ -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 {