From 58c0e2b8cba193d15d27119a1b9984909336cce7 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 27 Nov 2020 23:14:06 +0200 Subject: [PATCH] nginx --- swarmlab-app/src/run/app.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index ddb33a9..0e83fe2 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -473,12 +473,12 @@ 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++; }); })() @@ -501,12 +501,12 @@ 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++; }); });