Skip to content

Commit

Permalink
build: tweak timeout timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 2, 2019
1 parent 85dd6a6 commit 657aecc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const pingUrl = require('./ping-url')
const addHtml = require('./html')

const REQ_TIMEOUT = 8000
const REQ_TIMEOUT_REACHABLE = REQ_TIMEOUT * 0.25
const REQ_TIMEOUT_REACHABLE = REQ_TIMEOUT * (1 / 3)

const getHtml = html => he.decode(html)

Expand Down Expand Up @@ -132,3 +132,5 @@ module.exports = async (
}

module.exports.pingUrl = pingUrl
module.exports.REQ_TIMEOUT_REACHABLE = REQ_TIMEOUT_REACHABLE
module.exports.REQ_TIMEOUT = REQ_TIMEOUT

0 comments on commit 657aecc

Please sign in to comment.