lrf402788946 4 năm trước cách đây
mục cha
commit
ffcc052269
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/service/creeperxtsread.js

+ 4 - 0
app/service/creeperxtsread.js

@@ -93,10 +93,14 @@ class CreeperxtsreadService extends CrudService {
   }
 
   async toMq(data) {
+    console.log('in toMq');
+    console.log(`data:${data.lenght}`);
     if (this.ctx.mq) {
       const exchange = 'service_count';
       const routerKey = 'nodes';
       const parm = { durable: true };
+      console.log(`exchange:${exchange}`);
+      console.log(`routerKey:${routerKey}`);
       await this.mq.fanout(exchange, routerKey, JSON.stringify(data), parm);
     }
   }