From 52c24991384036e1f3df77bf1a61a373d10442cb Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 17:14:59 +0200 Subject: [PATCH] prox --- swarmlab-app/src/run/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 66e9614..11f389e 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -475,12 +475,12 @@ async function iosend(data,issend,io,pubClient,user1){ console.log(issend + ' ---1 '+ JSON.stringify(reslog1)) //io.in(user).emit("logdata", reslog1); }else{ - //if (await setkey(issend,'1')){ - pubClient.set(issend, '1', function(err, res) { console.log(issend + ' ---2 '+ JSON.stringify(reslog1)) + if (await setkey(issend,'1')){ + //pubClient.set(issend, '1', function(err, res) { + //}); io.in(user).emit("logdata", reslog1); - }); - //} + } }