git ssb

30+

cel / git-ssb-web



Commit 0c0f1f2e7a8f7d76e46d4a2781b7576e30e37d7f

Use paramap instead of asyncMap

Charles Lehner committed on 3/31/2016, 4:40:53 AM
Parent: 14f14a76d1ee3215375304a4d05bf1d349d31525

Files changed

index.jschanged
index.jsView
@@ -658,9 +658,9 @@
658658 msg.value.timestamp < Date.now()
659659 }),
660660 pull.take(20),
661661 addAuthorName(about),
662- pull.asyncMap(renderFeedItem)
662 + paramap(renderFeedItem, 8)
663663 )
664664 }
665665
666666 function renderFeedItem(msg, cb) {
@@ -1396,14 +1396,14 @@
13961396 pull.once('<section><h3>Digs</h3>' +
13971397 '<div>Total: ' + votes.upvotes + '</div>'),
13981398 pull(
13991399 pull.values(Object.keys(votes.upvoters)),
1400- pull.asyncMap(function (feedId, cb) {
1400 + paramap(function (feedId, cb) {
14011401 about.getName(feedId, function (err, name) {
14021402 if (err) return cb(err)
14031403 cb(null, link([feedId], name))
14041404 })
1405- }),
1405 + }, 8),
14061406 ul()
14071407 ),
14081408 pull.once('</section>')
14091409 ])))

Built with git-ssb-web