envio 2.30.0-rc.0 → 2.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "envio",
3
- "version": "v2.30.0-rc.0",
3
+ "version": "v2.30.1",
4
4
  "description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
5
5
  "bin": "./bin.js",
6
6
  "main": "./index.js",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "homepage": "https://envio.dev",
27
27
  "optionalDependencies": {
28
- "envio-linux-x64": "v2.30.0-rc.0",
29
- "envio-linux-arm64": "v2.30.0-rc.0",
30
- "envio-darwin-x64": "v2.30.0-rc.0",
31
- "envio-darwin-arm64": "v2.30.0-rc.0"
28
+ "envio-linux-x64": "v2.30.1",
29
+ "envio-linux-arm64": "v2.30.1",
30
+ "envio-darwin-x64": "v2.30.1",
31
+ "envio-darwin-arm64": "v2.30.1"
32
32
  },
33
33
  "dependencies": {
34
34
  "@envio-dev/hypersync-client": "0.6.6",
package/src/Batch.res CHANGED
@@ -94,10 +94,7 @@ let prepareOrderedBatch = (
94
94
  | None => 0
95
95
  }
96
96
  let newItemsCount =
97
- fetchState->FetchState.getReadyItemsCount(
98
- ~targetSize=batchSizeTarget - batchSize.contents,
99
- ~fromItem=itemsCountBefore,
100
- )
97
+ fetchState->FetchState.getReadyItemsCount(~targetSize=1, ~fromItem=itemsCountBefore)
101
98
 
102
99
  if newItemsCount > 0 {
103
100
  for idx in itemsCountBefore to itemsCountBefore + newItemsCount - 1 {
package/src/Batch.res.js CHANGED
@@ -65,7 +65,7 @@ function prepareOrderedBatch(batchSizeTarget, fetchStates, mutBatchSizePerChain)
65
65
  if (fetchState !== undefined) {
66
66
  var batchSize$1 = mutBatchSizePerChain[fetchState.chainId];
67
67
  var itemsCountBefore = batchSize$1 !== undefined ? batchSize$1 : 0;
68
- var newItemsCount = FetchState.getReadyItemsCount(fetchState, batchSizeTarget - batchSize | 0, itemsCountBefore);
68
+ var newItemsCount = FetchState.getReadyItemsCount(fetchState, 1, itemsCountBefore);
69
69
  if (newItemsCount > 0) {
70
70
  for(var idx = itemsCountBefore ,idx_finish = itemsCountBefore + newItemsCount | 0; idx < idx_finish; ++idx){
71
71
  items.push(fetchState.buffer[idx]);