Skip to content

Commit

Permalink
increase time handle block to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 10, 2024
1 parent 8e6bafd commit 5fa301e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/apps/worker-service/src/worker-service.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}),
]);
Expand All @@ -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;
}),
]);
Expand All @@ -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;
}),
]);
Expand All @@ -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;
}),
]);
Expand Down

0 comments on commit 5fa301e

Please sign in to comment.