Skip to content
Browse files

optimistically initialize Endpoint as healthy instead of down

  • Loading branch information...
1 parent 0e41be3 commit f1f303e04f4ce4bae13662732a61e66095fa7990 @dannycoates committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/endpoint.js
View
4 lib/endpoint.js
@@ -23,7 +23,7 @@ module.exports = function (inherits, EventEmitter) {
this.http = http
this.ip = ip
this.port = port
- this.healthy = false
+ this.healthy = true
this.name = this.ip + ':' + this.port
this.address = this.ip
this.pingPath = options.ping
@@ -49,8 +49,6 @@ module.exports = function (inherits, EventEmitter) {
if (!clockInterval) {
clockInterval = setInterval(function () { clock = Date.now() }, 10)
}
-
- this.ping()
}
inherits(Endpoint, EventEmitter)

0 comments on commit f1f303e

Please sign in to comment.
Something went wrong with that request. Please try again.