mirror of
https://github.com/amark/gun.git
synced 2026-03-07 17:41:45 +00:00
ws
This commit is contained in:
@@ -20,7 +20,7 @@ Gun.on('opt').event(function(gun, opts) {
|
||||
all.keys = all.keys || {};
|
||||
all.nodes = all.nodes || {};
|
||||
|
||||
// queue writes, adapted from https://github.com/toolness/jsondown/blob/master/jsondown.js
|
||||
// queue writes, adapted from https://github.com/toolness/jsondown/blob/master/jsondown.js
|
||||
var isWriting = false, queuedWrites = [];
|
||||
function writeFile(cb) {
|
||||
if(isWriting) return queuedWrites.push(cb);
|
||||
|
||||
Reference in New Issue
Block a user