@sentio/runtime 2.40.0-rc.23 → 2.40.0-rc.24

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.
@@ -59708,7 +59708,7 @@ var {
59708
59708
  } = dbMetrics;
59709
59709
  var STORE_BATCH_IDLE = process2.env["STORE_BATCH_MAX_IDLE"] ? parseInt(process2.env["STORE_BATCH_MAX_IDLE"]) : 1;
59710
59710
  var STORE_BATCH_SIZE = process2.env["STORE_BATCH_SIZE"] ? parseInt(process2.env["STORE_BATCH_SIZE"]) : 10;
59711
- var timeoutError = Symbol();
59711
+ var timeoutError = new Error("timeout");
59712
59712
  var _StoreContext = class {
59713
59713
  constructor(subject, processId) {
59714
59714
  this.subject = subject;
@@ -59829,7 +59829,6 @@ var _StoreContext = class {
59829
59829
  sendBatch() {
59830
59830
  if (this.upsertBatch) {
59831
59831
  const { request, opId, timer } = this.upsertBatch;
59832
- console.debug("sending batch upsert", opId, "batch size", request?.entity.length);
59833
59832
  clearTimeout(timer);
59834
59833
  this.upsertBatch = void 0;
59835
59834
  this.subject.next({
@@ -80382,7 +80381,6 @@ var ProcessorServiceImpl = class {
80382
80381
  const contexts = new Contexts();
80383
80382
  for await (const request of requests) {
80384
80383
  try {
80385
- console.debug("received request:", request);
80386
80384
  if (request.binding) {
80387
80385
  process_binding_count.add(1);
80388
80386
  const binding = request.binding;
package/lib/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { EthChainId } from '@sentio/chain';
10
10
 
11
11
  type Request = Omit<DBRequest, 'opId'>;
12
12
  type RequestType = keyof Request;
13
- declare const timeoutError: unique symbol;
13
+ declare const timeoutError: Error;
14
14
  declare class StoreContext {
15
15
  readonly subject: Subject<DeepPartial$1<ProcessStreamResponse>>;
16
16
  readonly processId: number;
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  makeEthCallKey,
15
15
  mergeProcessResults,
16
16
  timeoutError
17
- } from "./chunk-EDSLVEVQ.js";
17
+ } from "./chunk-N6FVCF37.js";
18
18
 
19
19
  // src/state.ts
20
20
  var _State = class {
@@ -41,7 +41,7 @@ import {
41
41
  require_minimal,
42
42
  require_src,
43
43
  trace
44
- } from "./chunk-EDSLVEVQ.js";
44
+ } from "./chunk-N6FVCF37.js";
45
45
 
46
46
  // ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
47
47
  var require_universalify = __commonJS({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.40.0-rc.23",
3
+ "version": "2.40.0-rc.24",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
package/src/db-context.ts CHANGED
@@ -24,7 +24,7 @@ const STORE_BATCH_SIZE = process.env['STORE_BATCH_SIZE'] ? parseInt(process.env[
24
24
  type Request = Omit<DBRequest, 'opId'>
25
25
  type RequestType = keyof Request
26
26
 
27
- export const timeoutError = Symbol()
27
+ export const timeoutError = new Error('timeout')
28
28
 
29
29
  export class StoreContext {
30
30
  private static opCounter = 0n
@@ -181,7 +181,7 @@ export class StoreContext {
181
181
  private sendBatch() {
182
182
  if (this.upsertBatch) {
183
183
  const { request, opId, timer } = this.upsertBatch
184
- console.debug('sending batch upsert', opId, 'batch size', request?.entity.length)
184
+ // console.debug('sending batch upsert', opId, 'batch size', request?.entity.length)
185
185
  clearTimeout(timer)
186
186
  this.upsertBatch = undefined
187
187
  this.subject.next({
package/src/service.ts CHANGED
@@ -403,7 +403,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
403
403
 
404
404
  for await (const request of requests) {
405
405
  try {
406
- console.debug('received request:', request)
406
+ // console.debug('received request:', request)
407
407
  if (request.binding) {
408
408
  process_binding_count.add(1)
409
409
  const binding = request.binding