Skip to content

Commit

Permalink
fix(rabbitmq): 🐛 missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDivic committed Jan 24, 2025
1 parent ae47a2d commit a581728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relayer/consumer/BundlerConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class BundlerConsumer
topLog.info(`BundlerConsumer.onMessageReceived`);

try {
this.queue.ack(msg);
await this.queue.ack(msg);
} catch (err) {
topLog.error({ err }, `BundlerConsumer.onMessageReceived:: Error while acknowledging message`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class EVMRetryTransactionService
);

try {
this.queue.ack(msg);
await this.queue.ack(msg);
} catch (err) {
log.error({ err }, `EVMRetryTransactionService.onMessageReceived:: Error while acknowledging message`);
}
Expand Down

0 comments on commit a581728

Please sign in to comment.