From 4d976c66bea9f239d3bd2d4badda9b0e5d8a1e57 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 20:03:14 +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 529478f..8391049 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -505,18 +505,18 @@ function onCollection(err, collection) { console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>> '+JSON.stringify(resob1)); //var user = objecttmp.user25user var user = resob1.res25creator + //io.in(user).emit("logdata", reslog); //var user = 'anagnostopoulos@uniwa.gr' (async() => { - io.in(user).emit("logdata", reslog); 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++; }); - })() //await + })(io) //await }); })() //await inside no }