Commit a3b6e67a79ab15e9e37b77d0493be9a811e5862e
Remove partial interval at end
It creates an uneven effect in the imagecel committed on 11/17/2019, 11:41:11 PM
Parent: c05ef3d7a163d0205ee54329f8a7a0fba176ad0a
Files changed
index.js | changed |
package.json | changed |
index.js | ||
---|---|---|
@@ -1,7 +1,6 @@ | ||
1 | 1 … | var FlumeViewLevel = require('flumeview-level') |
2 | 2 … | var pull = require('pull-stream') |
3 | -var cat = require('pull-cat') | |
4 | 3 … | |
5 | 4 … | function map(msg) { |
6 | 5 … | var author = msg.value.author |
7 | 6 … | var ts = msg.value.timestamp |
@@ -77,10 +76,9 @@ | ||
77 | 76 … | } |
78 | 77 … | if (!readOpts.gt && !readOpts.gte) readOpts.gt = [series, null, null] |
79 | 78 … | if (!readOpts.lt && !readOpts.lte) readOpts.lt = [series, undefined, undefined] |
80 | 79 … | return pull( |
81 | - // add object at end of stream to make the last group-by interval work | |
82 | - cat([activity.read(readOpts), pull.once({key: []})]), | |
80 … | + activity.read(readOpts), | |
83 | 81 … | groupByIds(groupOpts), |
84 | 82 … | pull.filter(Boolean) |
85 | 83 … | ) |
86 | 84 … | } |
Built with git-ssb-web