Skip to content

Commit

Permalink
made simple-node-logger optional => moved to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Oct 10, 2017
1 parent 848fa18 commit 2ff95ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
- emit an event whenever the rate limiter allows to run more jobs
- more tests on concurrency
- linter (eslint --fix ou prettier)
- move simplelogger to dev dependencies
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
},
"author": "Adrien Joly",
"license": "ISC",
"dependencies": {
"simple-node-logger": "^0.93.30"
},
"devDependencies": {
"jsdoc": "^3.5.5",
"mocha": "^4.0.1"
"mocha": "^4.0.1",
"simple-node-logger": "^0.93.30"
}
}
3 changes: 1 addition & 2 deletions qyu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
// see https://github.com/nodejs/node/issues/9523#issuecomment-259303079

const EventEmitter = require('events');
const SimpleNodeLogger = require('simple-node-logger');
const RateLimiter = require('./RateLimiter');

const LOWEST_PRIO = 10;

const DEFAULT_QUEUE_OPTIONS = {
log: SimpleNodeLogger.createSimpleLogger(),
log: { trace: () => {}, debug: () => {} }, // can be replaced by instance of simple-node-logger
rateLimit: null, // falsy => process in series. otherwise: max number of jobs to run within 1 second
statsInterval: 1000, // emit `stats` every second
};
Expand Down

0 comments on commit 2ff95ca

Please sign in to comment.