diff options
author | Sheogorath | 2019-05-25 21:17:28 +0200 |
---|---|---|
committer | GitHub | 2019-05-25 21:17:28 +0200 |
commit | 678d1396916523effd393791238879c0cac15e05 (patch) | |
tree | 536e541ee0bde9ebc2d356afb8728bf8df76f980 /lib/web | |
parent | 816ed4ebc7e0265b353f80285fe9601b2231dd90 (diff) | |
parent | 6c62efae2ad2dac6f4c58bd84726cfb36ea9a84b (diff) |
Merge pull request #6 from SISheogorath/feautre/notTooBusy
Add config for toobusy middleware
Diffstat (limited to 'lib/web')
-rw-r--r-- | lib/web/middleware/tooBusy.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/web/middleware/tooBusy.js b/lib/web/middleware/tooBusy.js index f1b72330..128a5679 100644 --- a/lib/web/middleware/tooBusy.js +++ b/lib/web/middleware/tooBusy.js @@ -2,7 +2,11 @@ const toobusy = require('toobusy-js') + const response = require('../../response') +const config = require('../../config') + +toobusy.maxLag(config.tooBusyLag) module.exports = function (req, res, next) { if (toobusy()) { |