check mix time

This commit is contained in:
Mark Nadal 2020-02-12 09:46:37 -08:00
parent 35414daa20
commit 3085579915
2 changed files with 3 additions and 3 deletions

1
gun.js
View File

@ -757,6 +757,7 @@
var set = ctx.set = {'':1};
;(console.STAT||'').p = +new Date;
all.err = obj_map(put, valid, msg);
Gun.log(S, +new Date - S, 'mix');
;(console.STAT||'').pe = +new Date;
mid = ctx.node = ctx.state = u;
all(); // if synchronous

View File

@ -271,7 +271,6 @@
p.read = function(err, data){ var tmp;
LOG && opt.log(S, +new Date - S, 'read disk', JSON.stringify(file), ++RPC, 'total all parses.');
delete Q[file];
LOG && opt.log(S, q.length, "read queue #");
if((p.err = err) || (p.not = !data)){ p.map(q, p.ack); return }
if('string' !== typeof data){
try{
@ -306,8 +305,8 @@
var S = +new Date;
var err = p.err, data = p.not? u : p.disk;
while(ack = q[i++]){ ack(err, data, info) }
LOG && opt.log(S, +new Date - S, 'rad packs', ename(s.file));
LOG && opt.log(S, q.length, 'rad packs #', ename(s.file));
LOG && opt.log(S, +new Date - S, 'rad packs', ename(file));
LOG && opt.log(S, q.length, 'rad packs #', ename(file));
}
p.ack = function(cb){
if(!cb){ return }