From 774ab2b038f3e8f252146eaffcb4ed18e1d9916d Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 19:19:48 +0200 Subject: [PATCH] async --- swarmlab-app/src/run/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index b8baed5..f78d2ae 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -504,13 +504,13 @@ function onCollection(err, collection) { console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '+JSON.stringify(reslog)); console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>> '+JSON.stringify(resob1)); //var user = objecttmp.user25user - //var user = resob1.res25creator - var user = 'anagnostopoulos@uniwa.gr' + var user = resob1.res25creator + //var user = 'anagnostopoulos@uniwa.gr' (async() => { await pubClient.get(issend, function(err, object) { if(err == null){ pubClient.set(issend, itemsProcessed, function(err, res) { - io.in(user).emit("logdata", reslog); + //io.in(user).emit("logdata", reslog); }); } itemsProcessed++;