mirror of
https://github.com/amark/gun.git
synced 2025-06-03 20:56:43 +00:00
only check once per disk, not each cb of it
This commit is contained in:
parent
3668f5099f
commit
5253e2084a
@ -225,6 +225,7 @@
|
||||
}
|
||||
g.check = function(err, disk, info){
|
||||
g.get(err, disk, info);
|
||||
if(disk.check){ return } disk.check = 1;
|
||||
(info || (info = {})).file || (info.file = g.file);
|
||||
Radix.map(disk, function(val, key){
|
||||
// assume in memory for now, since both write/read already call r.find which will init it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user