Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fi: assert non durable queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored Feb 23, 2024
1 parent 1357f5a commit 8b047ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Structures/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class Client extends EventEmitter {

const routing = new RoutedQueue(GatewayExchangeRoutes.DISPATCH, this.clientId, this.options.instanceName);

const { queue } = await channel.assertQueue(routing.queue);
const { queue } = await channel.assertQueue(routing.queue, { durable: false });
await this.bindQueue(channel, RabbitMQ.GATEWAY_EXCHANGE, routing);

await channel.consume(queue, message => {
Expand Down
2 changes: 1 addition & 1 deletion services/kanao-cache/src/Structures/KanaoCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class KanaoCache extends EventEmitter {

// Used for receiving receive events from the gateway
const routingKey = new RoutedQueue(GatewayExchangeRoutes.RECEIVE, clientId, "cache");
const { queue } = await channel.assertQueue(routingKey.queue);
const { queue } = await channel.assertQueue(routingKey.queue, { durable: false });
await channel.bindQueue(queue, "kanao-gateway", routingKey.key);
await channel.consume(queue, message => {
if (message) {
Expand Down

0 comments on commit 8b047ff

Please sign in to comment.