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