Skip to content

Commit

Permalink
manager now uses the new supermarket api
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Oct 17, 2010
1 parent ac9665a commit 9329200
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/models/managers.js
Expand Up @@ -28,13 +28,13 @@ Store({ filename : __dirname + '/../../data/procs.db', json : true }, function (
});
});

procs.forEach(function (err, _, proc) {
console.log('Connecting process ' + proc.pid + ' at ' + proc.address);
procs.forEach(function (proc) {
console.log('Connecting process ' + proc.value.pid + ' at ' + proc.value.address);
var p = module.exports[proc.engine].connect(proc);
if (!p) {
console.log('Removing proccess ' + proc.pid + ' at ' + proc.address);
console.log('Removing proccess ' + proc.value.pid + ' at ' + proc.value.address);
procs.remove(
proc.address,
proc.value.address,
function (err) { if (err) throw err }
);
}
Expand Down

0 comments on commit 9329200

Please sign in to comment.