From afea16f195851ab7252991b6044e292673ee1e39 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 30 Oct 2018 12:19:03 -0700 Subject: [PATCH] Using Temporary check method from the std library instead of our own. --- retry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retry.go b/retry.go index e9d8a45..17b5c1a 100644 --- a/retry.go +++ b/retry.go @@ -168,7 +168,7 @@ func (r *realisClient) thriftCallWithRetries(thriftCall auroraThriftCall) (*auro // EOF error occurs when the server closes the read buffer of the client. This is common // when the server is overloaded and should be retried. All other errors that are permanent // will not be retried. - if e.Err != io.EOF && !IsTemporary(e) { + if e.Err != io.EOF && !e.Temporary() { return nil, errors.Wrap(clientErr, "Permanent connection error") } }