Browse Source

async

master
zeus 4 years ago
parent
commit
a2df5079a2
  1. 4
      swarmlab-app/src/run/app.js

4
swarmlab-app/src/run/app.js

@ -505,12 +505,12 @@ function onCollection(err, collection) {
console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<obj>>>>>>>>>>>>>>>>>> '+JSON.stringify(resob1)); console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<obj>>>>>>>>>>>>>>>>>> '+JSON.stringify(resob1));
//var user = objecttmp.user25user //var user = objecttmp.user25user
//var user = resob1.res25creator //var user = resob1.res25creator
//var user = 'anagnostopoulos@uniwa.gr' var user = 'anagnostopoulos@uniwa.gr'
(async() => { (async() => {
await pubClient.get(issend, function(err, object) { await pubClient.get(issend, function(err, object) {
if(err == null){ if(err == null){
pubClient.set(issend, itemsProcessed, function(err, res) { pubClient.set(issend, itemsProcessed, function(err, res) {
//io.in(user).emit("logdata", reslog); io.in(user).emit("logdata", reslog);
}); });
} }
itemsProcessed++; itemsProcessed++;

Loading…
Cancel
Save