mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
tmp
This commit is contained in:
parent
2a450bf3cc
commit
05ba89888f
@ -287,15 +287,21 @@
|
||||
|| (!o.span && last && last > key && 0 != last.indexOf(key)) // 'zach' may be lexically larger than 'za', but there still might be more, like 'zane' in the 'za' prefix bucket so do not end here.
|
||||
){
|
||||
o.more = u;
|
||||
var S = +new Date;
|
||||
as.ack(g.err, data, o);
|
||||
LOG && opt.log(S, +new Date - S, 'rad range ack');
|
||||
return
|
||||
}
|
||||
if(u !== data){
|
||||
var S = +new Date;
|
||||
as.ack(g.err, data, o); // more might be coming!
|
||||
LOG && opt.log(S, +new Date - S, 'rad range ack.');
|
||||
if(o.parsed >= o.limit){ return } // even if more, we've hit our limit, asking peer will need to make a new ask with a new starting point.
|
||||
}
|
||||
o.next = as.file;
|
||||
var S = +new Date;
|
||||
r.read(key, as.ack, o);
|
||||
LOG && opt.log(S, +new Date - S, 'rad range read again');
|
||||
}
|
||||
if(o.reverse){ g.lex.reverse = true }
|
||||
LOG && (S = +new Date);
|
||||
|
Loading…
x
Reference in New Issue
Block a user