Skip to content

Commit

Permalink
increase 500ms per block
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 23, 2024
1 parent b5e6774 commit 672fd1a
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 @@ -34,7 +34,7 @@ export class WorkerServiceController {
async ethDetectBlock(data: BlockTransportDto) {
await Promise.race([
this.ethereumWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand All @@ -44,7 +44,7 @@ export class WorkerServiceController {
async polygonDetectBlock(data: any) {
await Promise.race([
this.polygonWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand All @@ -54,7 +54,7 @@ export class WorkerServiceController {
async avaxDetectBlock(data: any) {
await Promise.race([
this.avaxWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand All @@ -64,7 +64,7 @@ export class WorkerServiceController {
async mantleDetectBlock(data: any) {
await Promise.race([
this.mantleWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down

0 comments on commit 672fd1a

Please sign in to comment.