mirror of
https://github.com/amark/gun.git
synced 2025-06-06 14:16:44 +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.check = function(err, disk, info){
|
||||||
g.get(err, disk, info);
|
g.get(err, disk, info);
|
||||||
|
if(disk.check){ return } disk.check = 1;
|
||||||
(info || (info = {})).file || (info.file = g.file);
|
(info || (info = {})).file || (info.file = g.file);
|
||||||
Radix.map(disk, function(val, key){
|
Radix.map(disk, function(val, key){
|
||||||
// assume in memory for now, since both write/read already call r.find which will init it.
|
// 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