git ssb

10+

Matt McKegg / patchwork



Commit ca4da78423a93192d0c1c35511d0be424d003d8c

feed-summary: fix pressure valve (again! gosh darn heck!)

Matt McKegg committed on 11/2/2016, 4:53:28 AM
Parent: a5da1caabea6be5eed8baecd05ca37431e9ed9eb

Files changed

lib/feed-summary.jschanged
lib/feed-summary.jsView
@@ -119,16 +119,16 @@
119119 }
120120
121121 function reverseForEach (items, fn, cb) {
122122 var i = items.length - 1
123- var start = Date.now()
124123 nextBatch()
125124
126125 function nextBatch () {
126 + var start = Date.now()
127127 while (i >= 0) {
128128 fn(items[i], i)
129129 i -= 1
130- if (Date.now() - start < 10) break
130 + if (Date.now() - start > 10) break
131131 }
132132
133133 if (i > 0) {
134134 setImmediate(nextBatch)

Built with git-ssb-web