@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.
- package/lib/{chunk-EDSLVEVQ.js → chunk-N6FVCF37.js} +1 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +1 -1
- package/package.json +1 -1
- package/src/db-context.ts +2 -2
- package/src/service.ts +1 -1
@@ -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 =
|
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:
|
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
package/lib/processor-runner.js
CHANGED
package/package.json
CHANGED
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 =
|
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
|