From 8e6bafdb13928b9061f08909b2f1c170d1d3b897 Mon Sep 17 00:00:00 2001 From: cauta Date: Fri, 10 May 2024 17:11:28 +0700 Subject: [PATCH] fix handle time per block --- app/apps/worker-service/src/worker-service.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/apps/worker-service/src/worker-service.controller.ts b/app/apps/worker-service/src/worker-service.controller.ts index 89134ed..8d31bfa 100644 --- a/app/apps/worker-service/src/worker-service.controller.ts +++ b/app/apps/worker-service/src/worker-service.controller.ts @@ -29,7 +29,7 @@ export class WorkerServiceController { async ethDetectBlock(data: any) { await Promise.race([ this.ethereumWorker.ethHandleDetectedBlock(data), - this.delay(100).then(() => { + this.delay(500).then(() => { return; }), ]); @@ -39,7 +39,7 @@ export class WorkerServiceController { async ethConfirmBlock(data: any) { await Promise.race([ this.ethereumWorker.ethHandleConfirmedBlock(data), - this.delay(100).then(() => { + this.delay(500).then(() => { return; }), ]); @@ -49,7 +49,7 @@ export class WorkerServiceController { async polygonDetectBlock(data: any) { await Promise.race([ this.polygonWorker.ethHandleDetectedBlock(data), - this.delay(100).then(() => { + this.delay(500).then(() => { return; }), ]); @@ -59,7 +59,7 @@ export class WorkerServiceController { async polygonConfirmBlock(data: any) { await Promise.race([ this.polygonWorker.ethHandleConfirmedBlock(data), - this.delay(100).then(() => { + this.delay(500).then(() => { return; }), ]);