From a2df5079a25c80f06e2d8d4ad69b50a37a971c42 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 19:27:46 +0200 Subject: [PATCH] async --- swarmlab-app/src/run/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 4e0eac7..b8baed5 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -505,12 +505,12 @@ function onCollection(err, collection) { console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>> '+JSON.stringify(resob1)); //var user = objecttmp.user25user //var user = resob1.res25creator - //var user = 'anagnostopoulos@uniwa.gr' + 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++;