debug should retry
This commit is contained in:
parent
297abc3e84
commit
c943ff00a2
|
@ -4,6 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
@ -565,7 +566,10 @@ type temporary interface {
|
||||||
Temporary() bool
|
Temporary() bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func shouldRetryCancel(err error) bool {
|
func shouldRetryCancel(err error) (shouldRetry bool) {
|
||||||
|
defer func() {
|
||||||
|
log.Printf("shouldRetry returned %t with %#v", shouldRetry, err)
|
||||||
|
}()
|
||||||
switch err := err.(type) {
|
switch err := err.(type) {
|
||||||
case awserr.Error:
|
case awserr.Error:
|
||||||
if err.Code() == CanceledErrorCode {
|
if err.Code() == CanceledErrorCode {
|
||||||
|
|
Loading…
Reference in New Issue