Browse Source

async

master
zeus 4 years ago
parent
commit
15f940ffa7
  1. 3
      swarmlab-app/src/run/app.js

3
swarmlab-app/src/run/app.js

@ -452,6 +452,7 @@ function onCollection(err, collection) {
var issend = getSHA256ofJSON(issendob) var issend = getSHA256ofJSON(issendob)
console.log('++++++++' + JSON.stringify(data)); console.log('++++++++' + JSON.stringify(data));
console.log('++++++++' + JSON.stringify(issend));
var pathfileval = pathmodule.basename(data.tailed_path); var pathfileval = pathmodule.basename(data.tailed_path);
var arrfile = pathfileval.toString().split("-"); var arrfile = pathfileval.toString().split("-");
@ -461,7 +462,7 @@ function onCollection(err, collection) {
var resob = {} var resob = {}
await pubClient.get(pathfileval, function(err, object) { await pubClient.get(pathfileval, function(err, object) {
console.log('----------------' + err + '<<<<<<<<<<<<<<<<<<<<<<' + object); console.log('----------------' + err + '<<<<<<<<<<<<<<<<<<<<<<' + object);
if(object){ if(ress == null){
indexupdate = "no" indexupdate = "no"
}else{ }else{
console.log('redis '+JSON.stringify(object)); console.log('redis '+JSON.stringify(object));

Loading…
Cancel
Save