From c2bcb506467fc4afc8cdcfd705c6d5cc8673802f Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 00:19:18 +0200 Subject: [PATCH] nginx --- swarmlab-app/src/run/app.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 4e7f7c9..99bbe5b 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -477,14 +477,14 @@ function onCollection(err, collection) { var user = resob1.res25creator console.log('datauser ' + JSON.stringify(user)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); - //pubClient.get(issend, function(err, object) { - //if(err == null){ - //pubClient.set(issend, itemsProcessed, function(err, res) { + pubClient.get(issend, function(err, object) { + if(err == null){ + pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user).emit("logdata", reslog); - //}); - //} + }); + } itemsProcessed++; - //}); + }); })() }else{ pubClient.get(pathfileval, function(err, object) { @@ -505,15 +505,15 @@ function onCollection(err, collection) { var user = objecttmp.user25user //io.join(user); //io.to(user).emit(reslog); - //pubClient.get(issend, function(err, object) { - //if(err == null){ - //pubClient.set(issend, itemsProcessed, function(err, res) { + pubClient.get(issend, function(err, object) { + if(err == null){ + pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user).emit("logdata", reslog); - //}); - //} + }); + } itemsProcessed++; }); - //}); + }); } });