moving more code out of api.js

This commit is contained in:
Thomas Harvey
2017-10-16 19:18:59 -04:00
parent b385c0cb7f
commit 178838366c
2 changed files with 8 additions and 5 deletions

View File

@@ -9,11 +9,9 @@ var doapi = require('../doapi')();
var workers = require('./worker_collection.js');
(function(){
console.log('========STARTING===========')
setInterval(workers.checkBalance, 15000);
workers.destroyByTag();
})()
console.log('========STARTING===========');
workers.start();
var attemptRun = function(req, res, runner, count){
count = count || 0;