Comparing version 1.3.1 to 1.3.2
16
index.js
@@ -69,10 +69,12 @@ var raf = require('random-access-file') | ||
var feed = self._hypercore(storage, self._opts) | ||
readStringFromStorage(storage('localname'), function (err, name) { | ||
if (!err && name) { | ||
self._addFeed(feed, name) | ||
} else { | ||
self._addFeed(feed, String(n)) | ||
} | ||
feed.ready(function () { | ||
readStringFromStorage(storage('localname'), function (err, name) { | ||
if (!err && name) { | ||
self._addFeed(feed, name) | ||
} else { | ||
self._addFeed(feed, String(n)) | ||
} | ||
next(n+1) | ||
}) | ||
}) | ||
next(n+1) | ||
}) | ||
@@ -79,0 +81,0 @@ })(0) |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
18261
451