Skip to content

Commit

Permalink
fix raw writer when batch size is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgroul committed May 20, 2024
1 parent 2a22558 commit ea5b017
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/util-internal-archive-layout",
"comment": "fix raw writer when batch size is too small",
"type": "patch"
}
],
"packageName": "@subsquid/util-internal-archive-layout"
}
1 change: 1 addition & 0 deletions util/util-internal-archive-layout/src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,5 @@ function* pack<T>(items: T[], size: number): Iterable<T[]> {
}

items.splice(0, offset)
yield items
}

0 comments on commit ea5b017

Please sign in to comment.