Skip to content

Commit

Permalink
update block handle time
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 30, 2024
1 parent 99270bb commit 9f3f3ee
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class AvaxWorkerController {
async avaxDetectBlock(data: any) {
await Promise.race([
this.avaxWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class BscWorkerController {
async bscDetectBlock(data: any) {
await Promise.race([
this.bscWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class EthereumWorkerController {
async ethDetectBlock(data: BlockTransportDto) {
await Promise.race([
this.ethereumWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class MantleWorkerController {
async mantleDetectBlock(data: any) {
await Promise.race([
this.mantleWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class PolygonWorkerController {
async polygonDetectBlock(data: any) {
await Promise.race([
this.polygonWorker.handleBlock(data),
this.delay(200).then(() => {
this.delay(500).then(() => {
return;
}),
]);
Expand Down
84 changes: 0 additions & 84 deletions app/apps/worker-service/src/worker-service.controller.ts

This file was deleted.

0 comments on commit 9f3f3ee

Please sign in to comment.