From 8b8fdb7d99509bb9ebb0bb8bea5240bd64309c69 Mon Sep 17 00:00:00 2001 From: Mothiki Date: Fri, 3 Nov 2017 15:00:36 -0700 Subject: [PATCH] dont compare for retry errors --- retry.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/retry.go b/retry.go index 63f6a5d..ae1da23 100644 --- a/retry.go +++ b/retry.go @@ -20,7 +20,6 @@ package realis import ( "errors" - "strings" "time" "github.com/paypal/gorealis/gen-go/apache/aurora" @@ -72,7 +71,7 @@ func ExponentialBackoff(backoff Backoff, condition ConditionFunc) error { // If Error is retyable return resp and RetryConnErr error. func CheckAndRetryConn(r Realis, auroraCall AuroraThriftCall) (*aurora.Response, error) { resp, cliErr := auroraCall() - if cliErr != nil && (strings.Contains(cliErr.Error(), ConnRefusedErr) || strings.Contains(cliErr.Error(), NoLeaderFoundErr)) { + if cliErr != nil /*&& (strings.Contains(cliErr.Error(), ConnRefusedErr) || strings.Contains(cliErr.Error(), NoLeaderFoundErr))*/ { r.ReestablishConn() return resp, RetryConnErr }