Using Temporary check method from the std library instead of our own.

This commit is contained in:
Renan DelValle 2018-10-30 12:19:03 -07:00
parent ffab8e6d40
commit afea16f195
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -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")
}
}