isUnhealthyFunc: function isUnhealthy()

in index.js [10:13]


    isUnhealthyFunc: function isUnhealthy(err, resp) {
        // default is for HTTP, tchannel/other protocal needs to pass in different function
        return err || resp && !isNaN(resp.statusCode) && resp.statusCode >= 500;
    }