From 7438e339a3420ffe7a78eff4add638b9b7acdc91 Mon Sep 17 00:00:00 2001 From: KagChi Date: Fri, 23 Feb 2024 12:22:07 +0700 Subject: [PATCH] fix: try dont use prefetch --- services/kanao-cache/src/Structures/KanaoCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/kanao-cache/src/Structures/KanaoCache.ts b/services/kanao-cache/src/Structures/KanaoCache.ts index 0bd4c4f2..12ab220e 100644 --- a/services/kanao-cache/src/Structures/KanaoCache.ts +++ b/services/kanao-cache/src/Structures/KanaoCache.ts @@ -35,7 +35,7 @@ export class KanaoCache extends EventEmitter { } public async setupAmqp(channel: Channel): Promise { - await channel.prefetch(1); + // await channel.prefetch(1); await channel.assertExchange(RabbitMQ.GATEWAY_QUEUE_SEND, "direct", { durable: true }); await channel.assertExchange("nezu-gateway.cache", "direct", { durable: true }); const { queue } = await channel.assertQueue("kanao-cache.receive", { durable: true });