|
|
@ -437,14 +437,21 @@ async function getkey(key) { |
|
|
|
|
|
|
|
await pubClient.get(key, function (err, reply) { |
|
|
|
if(err){ |
|
|
|
console.log('----------not fount------------') |
|
|
|
|
|
|
|
console.log('----------error------------') |
|
|
|
|
|
|
|
//resolve(null)
|
|
|
|
return null |
|
|
|
} |
|
|
|
else { |
|
|
|
console.log('---------fount----------') |
|
|
|
//resolve(reply)
|
|
|
|
return reply |
|
|
|
if(reply){ |
|
|
|
console.log('---------fount----------') |
|
|
|
//resolve(reply)
|
|
|
|
return reply |
|
|
|
}else{ |
|
|
|
console.log('----------not fount------------') |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
//})
|
|
|
|