mirror of
https://github.com/amark/gun.git
synced 2026-03-11 11:15:10 +00:00
debug
This commit is contained in:
@@ -51,7 +51,7 @@ function Store(opt){
|
||||
|
||||
store.put = function(file, data, cb){
|
||||
var params = {Bucket: opts.bucket, Key: file, Body: data};
|
||||
//console.log("RS3 PUT ---->", (data||"").slice(0,20));
|
||||
console.log("RS3 PUT ---->", (data||"").slice(0,20));
|
||||
c.p[file] = data;
|
||||
delete c.g[file];//Gun.obj.del(c.g, file);
|
||||
delete c.l[1];//Gun.obj.del(c.l, 1);
|
||||
@@ -68,7 +68,7 @@ function Store(opt){
|
||||
//console.log("RS3 GET ---->", file);
|
||||
s3.getObject(params, function got(err, ack){
|
||||
if(err && 'NoSuchKey' === err.code){ err = u }
|
||||
//console.log("RS3 GOT <----", err, file, cbs.length, ((ack||{}).Body||'').toString().slice(0,20));
|
||||
console.log("RS3 GOT <----", err, file, cbs.length, ((ack||{}).Body||'').toString().slice(0,20));
|
||||
delete c.g[file];//Gun.obj.del(c.g, file);
|
||||
var data, data = (ack||'').Body;
|
||||
var i = 0, cba; while(cba = cbs[i++]){ cba && cba(err, data) }//Gun.obj.map(cbs, cbe);
|
||||
|
||||
Reference in New Issue
Block a user