Minor fixes.

This commit is contained in:
André Cruz
2013-05-05 03:14:07 +01:00
parent 63c005a3de
commit cd31799c4c
2 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
var Q = require('q');
var util = require('util');
var events = require('events');
var mout = require('mout');
var Worker = function (defaultConcurrency, types) {
@@ -12,8 +10,6 @@ var Worker = function (defaultConcurrency, types) {
this._executing = [];
};
util.inherits(Worker, events.EventEmitter);
// -----------------
Worker.prototype.enqueue = function (func, type) {
@@ -76,7 +72,7 @@ Worker.prototype._processEntry = function (entry) {
var allFree = entry.types.every(this._hasSlot, this);
var promise;
// If there is a free slot for every tag
// If there is a free slot for every type
if (allFree) {
// For each type
entry.types.forEach(function (type) {