Commit 0c0f1f2e7a8f7d76e46d4a2781b7576e30e37d7f
Use paramap instead of asyncMap
Charles Lehner committed on 3/31/2016, 4:40:53 AMParent: 14f14a76d1ee3215375304a4d05bf1d349d31525
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -658,9 +658,9 @@ | |||
658 | 658 … | msg.value.timestamp < Date.now() | |
659 | 659 … | }), | |
660 | 660 … | pull.take(20), | |
661 | 661 … | addAuthorName(about), | |
662 | - pull.asyncMap(renderFeedItem) | ||
662 … | + paramap(renderFeedItem, 8) | ||
663 | 663 … | ) | |
664 | 664 … | } | |
665 | 665 … | ||
666 | 666 … | function renderFeedItem(msg, cb) { | |
@@ -1396,14 +1396,14 @@ | |||
1396 | 1396 … | pull.once('<section><h3>Digs</h3>' + | |
1397 | 1397 … | '<div>Total: ' + votes.upvotes + '</div>'), | |
1398 | 1398 … | pull( | |
1399 | 1399 … | pull.values(Object.keys(votes.upvoters)), | |
1400 | - pull.asyncMap(function (feedId, cb) { | ||
1400 … | + paramap(function (feedId, cb) { | ||
1401 | 1401 … | about.getName(feedId, function (err, name) { | |
1402 | 1402 … | if (err) return cb(err) | |
1403 | 1403 … | cb(null, link([feedId], name)) | |
1404 | 1404 … | }) | |
1405 | - }), | ||
1405 … | + }, 8), | ||
1406 | 1406 … | ul() | |
1407 | 1407 … | ), | |
1408 | 1408 … | pull.once('</section>') | |
1409 | 1409 … | ]))) |
Built with git-ssb-web