Comparing version 1.3.5 to 1.3.6
14
index.js
@@ -41,3 +41,2 @@ var raf = require('random-access-file') | ||
self._fake = feed | ||
self._loadFeeds(done) | ||
@@ -189,7 +188,10 @@ }) | ||
// push remainder of buffer | ||
this.push(buf.slice(size)) | ||
addMissingKeys(keys, function () { | ||
// push remainder of buffer | ||
var leftover = buf.slice(size) | ||
self.push(leftover) | ||
addMissingKeys(keys, function () { | ||
startSync() | ||
process.nextTick(function () { | ||
startSync() | ||
}) | ||
next() | ||
@@ -221,3 +223,3 @@ }) | ||
function cmp (a, b) { | ||
return a.key.toString('hex') < b.key.toString('hex') | ||
return a.key.toString('hex') > b.key.toString('hex') | ||
} | ||
@@ -224,0 +226,0 @@ sortedFeeds.forEach(function (feed) { |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
@@ -7,5 +7,5 @@ { | ||
"deps": [], | ||
"state": "todo" | ||
"state": "done" | ||
} | ||
} | ||
} |
20400
534