Browse Source

prox

master
zeus 4 years ago
parent
commit
0db5f87f1d
  1. 4
      swarmlab-app/src/run/app.js

4
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'){

Loading…
Cancel
Save