lrf 3 年之前
父節點
當前提交
29fe84ce43
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/mission.js

+ 1 - 1
app/service/mission.js

@@ -104,7 +104,7 @@ class MissionService extends CrudService {
   async toQueue(project, data) {
   async toQueue(project, data) {
     const ch = await this.mq.conn.createChannel();
     const ch = await this.mq.conn.createChannel();
     const queue = `mission/${project}`;
     const queue = `mission/${project}`;
-    await ch.assertQueue(queue, { durable: true });
+    await ch.assertQueue(queue, { durable: false });
     await ch.sendToQueue(queue, Buffer.from(data));
     await ch.sendToQueue(queue, Buffer.from(data));
     await ch.close();
     await ch.close();
   }
   }