Skip to content

Commit

Permalink
fix: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 20, 2024
1 parent 05cf71b commit 81b28b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export class AvaxPollingBlockService {
blockNumber++
) {
try {
this.logger.log(`last emitted block ${blockNumber}`);

// emit event detect block with blocknumber
this.workerClient.emit(
TopicName.AVAX_DETECTED_BLOCK,
Expand All @@ -127,7 +125,7 @@ export class AvaxPollingBlockService {
);

this.detectInfo.blockNumber = blockNumber;

this.logger.debug(`last emitted block ${blockNumber}`);
//only update last sync for confirm
await this.updateLastSyncBlock(
blockNumber - SupportedChain.AVALANCHE.confirmationBlock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export class EthereumPollingBlockService {
blockNumber++
) {
try {
this.logger.log(`last emitted block ${blockNumber}`);

// emit event detect block with blocknumber
this.workerClient.emit(
TopicName.ETH_DETECTED_BLOCK,
Expand All @@ -127,7 +125,7 @@ export class EthereumPollingBlockService {
);

this.detectInfo.blockNumber = blockNumber;

this.logger.debug(`last emitted block ${blockNumber}`);
//only update last sync for confirm
await this.updateLastSyncBlock(
blockNumber - SupportedChain.ETH.confirmationBlock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export class MantlePollingBlockService {
blockNumber++
) {
try {
this.logger.log(`last emitted block ${blockNumber}`);

// emit event detect block with blocknumber
this.workerClient.emit(
TopicName.MANTLE_DETECTED_BLOCK,
Expand All @@ -129,6 +127,7 @@ export class MantlePollingBlockService {
);

this.detectInfo.blockNumber = blockNumber;
this.logger.debug(`last emitted block ${blockNumber}`);

//only update last sync for confirm
await this.updateLastSyncBlock(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export class PolygonPollingBlockService {
blockNumber++
) {
try {
this.logger.log(`last emitted block ${blockNumber}`);

// emit event detect block with blocknumber
this.workerClient.emit(
TopicName.POLYGON_DETECTED_BLOCK,
Expand All @@ -129,7 +127,7 @@ export class PolygonPollingBlockService {
);

this.detectInfo.blockNumber = blockNumber;

this.logger.debug(`last emitted block ${blockNumber}`);
//only update last sync for confirm
await this.updateLastSyncBlock(
blockNumber - SupportedChain.POLYGON.confirmationBlock,
Expand Down

0 comments on commit 81b28b4

Please sign in to comment.