mirror of
https://github.com/amark/gun.git
synced 2025-07-10 06:42:32 +00:00
Update radisk.js
This commit is contained in:
parent
ed82e28109
commit
77fda9d42c
@ -231,10 +231,10 @@
|
|||||||
r.find(key, function(file){
|
r.find(key, function(file){
|
||||||
if((file || (file = opt.code.from)) === info.file){ return }
|
if((file || (file = opt.code.from)) === info.file){ return }
|
||||||
var id = Gun.text.random(3);
|
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){
|
r.save(key, val, function ack(err, ok){
|
||||||
if(err){ r.save(key, val, ack); return } // ad infinitum???
|
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));
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user