Skip to content

Commit

Permalink
don't need so much debugging a anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Swizec committed Dec 19, 2010
1 parent 093a54e commit 388aaa0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ exports.listen = function (queue, worker, callback) {

var execute = function (tasks, callback) {
var notify_client = function (task, callback) {
console.log("notifying");
try {
var url = urllib.parse(task.callback);
var body = JSON.stringify(task);
Expand Down Expand Up @@ -66,7 +65,6 @@ exports.listen = function (queue, worker, callback) {
callbacks++;
notify_client(result, function () {
if (callbacks >= tasks.length) {
console.log("going for more");
callback();
}
});
Expand Down Expand Up @@ -100,15 +98,12 @@ exports.listen = function (queue, worker, callback) {
}else {
recurse();
}
console.log(tmp);
console.log('\n');
}
});
}

listener.subscribe("rapid.queue:"+queue+":pub");
listener.on("message", function (channel, message) {
console.log("message!");
if (message == 'task!' && !BUSY) {
inner_worker();
}
Expand Down

0 comments on commit 388aaa0

Please sign in to comment.