Update radisk.js

This commit is contained in:
Mark Nadal 2020-02-10 23:17:15 -08:00
parent ed82e28109
commit 77fda9d42c

View File

@ -231,10 +231,10 @@
r.find(key, function(file){
if((file || (file = opt.code.from)) === info.file){ return }
var id = Gun.text.random(3);
console.log("MISLOCATED DATA", id, key, info.file, file);
//console.log("MISLOCATED DATA CORRECTED");
r.save(key, val, function ack(err, ok){
if(err){ r.save(key, val, ack); return } // ad infinitum???
console.log("MISLOCATED DATA CORRECTED", id);
console.log("MISLOCATED DATA CORRECTED", id, ename(key), ename(info.file), ename(file));
});
})
});