From e9e3eb7e0a9984b256b9396feaa13193d0284c2f Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 18:01:09 +0200 Subject: [PATCH] prox --- swarmlab-app/src/run/app.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 0c09f45..1611e83 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -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 + } } }) //})