|
@ -449,8 +449,6 @@ function getSHA256ofJSON(data, inputEncoding, encoding){ |
|
|
async function getkey(key) { |
|
|
async function getkey(key) { |
|
|
return new Promise((resolve) => { |
|
|
return new Promise((resolve) => { |
|
|
|
|
|
|
|
|
const randomTimeInMs = Math.random() * (2000); |
|
|
|
|
|
await sleep(randomTimeInMs); |
|
|
|
|
|
|
|
|
|
|
|
pubClient.get(key, function (err, reply) { |
|
|
pubClient.get(key, function (err, reply) { |
|
|
if(err){ |
|
|
if(err){ |
|
@ -499,6 +497,8 @@ async function iosend(data,issend,io,pubClient,user1){ |
|
|
reslog1.date = convertDateToUTC(now) |
|
|
reslog1.date = convertDateToUTC(now) |
|
|
var user = user1 |
|
|
var user = user1 |
|
|
|
|
|
|
|
|
|
|
|
const randomTimeInMs = Math.random() * (2000); |
|
|
|
|
|
await sleep(randomTimeInMs); |
|
|
var getres = await getkey(issend); |
|
|
var getres = await getkey(issend); |
|
|
|
|
|
|
|
|
if(getres == '1'){ |
|
|
if(getres == '1'){ |
|
|