Skip to content

Commit

Permalink
fix(limit): stalling stream
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 12, 2024
1 parent 761a879 commit c952d1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-monkeys-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-base": patch
---

`base:limit` step could cause the stream to stall
2 changes: 0 additions & 2 deletions packages/base/limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export default function limit(limit) {
count++
if (count <= limit) {
yield chunk
} else {
break
}
}
}
Expand Down

0 comments on commit c952d1f

Please sign in to comment.