From 77900e0ec394a7823cbdeaf7ba5d7f911e410e84 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 21:53:20 +0200 Subject: [PATCH] async --- swarmlab-app/src/run/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 84a7932..7f68b7f 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -519,14 +519,16 @@ function onCollection(err, collection) { var user = resob1.res25creator //io.in(user).emit("logdata", reslog); //var user = 'anagnostopoulos@uniwa.gr' + /* pubClient.get(issend).then(function (result) { console.log(result); // Prints "bar" io.in(user).emit("logdata", reslog); }); + */ 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++;