Comparing version 2.0.5 to 2.0.6
11
index.js
@@ -156,2 +156,13 @@ var raf = require('random-access-file') | ||
function addMissingKeys (keys, cb) { | ||
self.ready(function (err) { | ||
if (err) return cb(err) | ||
self.writerLock(function (release) { | ||
addMissingKeysLocked(keys, function (err) { | ||
release(cb, err) | ||
}) | ||
}) | ||
}) | ||
} | ||
function addMissingKeysLocked (keys, cb) { | ||
var pending = 0 | ||
@@ -158,0 +169,0 @@ debug('[REPLICATION] recv\'d ' + keys.length + ' keys') |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
25245
665