Comparing version 4.0.4 to 4.0.5
@@ -295,4 +295,6 @@ var raf = require('random-access-file') | ||
if (!feeds.length) { | ||
var myKey = String(keyId) | ||
var storage = self._storage(keyId) | ||
keyId++ | ||
pending++ | ||
var storage = self._storage(''+numFeeds) | ||
var feed | ||
@@ -308,3 +310,3 @@ try { | ||
feed.ready(function () { | ||
self._addFeed(feed, String(keyId)) | ||
self._addFeed(feed, myKey) | ||
keyId++ | ||
@@ -311,0 +313,0 @@ debug(self._id + ' [REPLICATION] succeeded in creating new local hypercore, key=' + key.toString('hex')) |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
39509
1043