Skip to content

Commit

Permalink
Reduced cut off time from 10 to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbastian-trayio committed Jan 9, 2019
1 parent 2db138e commit cb88569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bindConnectors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ module.exports = function (config, options) {

/*
If context.getRemainingTimeInMillis is available, set it's value
minus 10 seconds, and make sure it is positive; else set the
minus 5 seconds, and make sure it is positive; else set the
timeout to 0 (such that it is falsy)
*/
var timeRemaining = (
_.isPlainObject(context) && _.isFunction(context.getRemainingTimeInMillis) ?
context.getRemainingTimeInMillis() :
0
);
var promiseTimeout = timeRemaining - 10000;
var promiseTimeout = timeRemaining - 5000;
promiseTimeout = ( promiseTimeout < 1 ? 0 : promiseTimeout );


Expand Down

0 comments on commit cb88569

Please sign in to comment.