From b5bf5bec11cb313da47e4f1d27cd2cc6bf45d990 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 15:45:34 +0200 Subject: [PATCH] async --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index f563d0a..9e4f6cf 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -486,6 +486,7 @@ function onCollection(err, collection) { }); })() //await inside yes }else{ + (async() => { await pubClient.get(pathfileval, function(err, object) { var objecttmp = JSON.parse(object); var resob1 = {} @@ -511,6 +512,7 @@ function onCollection(err, collection) { itemsProcessed++; }); }); + })() //await inside no } }); //redis get })() //async