Making receivers for error pointers. Making new function return pointers. Fixing typo.
This commit is contained in:
parent
c7087c1150
commit
3e90e5db72
2 changed files with 7 additions and 7 deletions
2
retry.go
2
retry.go
|
@ -83,7 +83,7 @@ func ExponentialBackoff(backoff Backoff, condition ConditionFunc) error {
|
|||
func CheckAndRetryConn(r Realis, auroraCall AuroraThriftCall) (*aurora.Response, error) {
|
||||
resp, cliErr := auroraCall()
|
||||
|
||||
// TODO: Rerturn different error type based on the error that was returned by the API call
|
||||
// TODO: Return different error type based on the error that was returned by the API call
|
||||
if cliErr != nil {
|
||||
r.ReestablishConn()
|
||||
return resp, NewPermamentError(RetryConnErr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue