From 0db5f87f1dab1c055fa9dfe17dd647b4a84c32fe Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 20:37:03 +0200 Subject: [PATCH] prox --- swarmlab-app/src/run/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 7a578c9..574220e 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -449,8 +449,6 @@ function getSHA256ofJSON(data, inputEncoding, encoding){ async function getkey(key) { return new Promise((resolve) => { - const randomTimeInMs = Math.random() * (2000); - await sleep(randomTimeInMs); pubClient.get(key, function (err, reply) { if(err){ @@ -499,6 +497,8 @@ async function iosend(data,issend,io,pubClient,user1){ reslog1.date = convertDateToUTC(now) var user = user1 + const randomTimeInMs = Math.random() * (2000); + await sleep(randomTimeInMs); var getres = await getkey(issend); if(getres == '1'){