Skip to content

Commit

Permalink
fix handle time per block
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 10, 2024
1 parent fedad34 commit 8e6bafd
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(100).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand All @@ -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;
}),
]);
Expand All @@ -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;
}),
]);
Expand All @@ -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;
}),
]);
Expand Down

0 comments on commit 8e6bafd

Please sign in to comment.