From 5fa301e055a6aff36d875bfc1249e04bb886a4ca Mon Sep 17 00:00:00 2001 From: cauta Date: Fri, 10 May 2024 17:38:56 +0700 Subject: [PATCH] increase time handle block to 1s --- 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 8d31bfa..bcce77c 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(500).then(() => { + this.delay(1000).then(() => { return; }), ]); @@ -39,7 +39,7 @@ export class WorkerServiceController { async ethConfirmBlock(data: any) { await Promise.race([ this.ethereumWorker.ethHandleConfirmedBlock(data), - this.delay(500).then(() => { + this.delay(1000).then(() => { return; }), ]); @@ -49,7 +49,7 @@ export class WorkerServiceController { async polygonDetectBlock(data: any) { await Promise.race([ this.polygonWorker.ethHandleDetectedBlock(data), - this.delay(500).then(() => { + this.delay(1000).then(() => { return; }), ]); @@ -59,7 +59,7 @@ export class WorkerServiceController { async polygonConfirmBlock(data: any) { await Promise.race([ this.polygonWorker.ethHandleConfirmedBlock(data), - this.delay(500).then(() => { + this.delay(1000).then(() => { return; }), ]);