fix
This commit is contained in:
parent
e3be2c4c62
commit
61a532cae8
1 changed files with 4 additions and 4 deletions
|
|
@ -32,14 +32,14 @@ export async function init() {
|
|||
});
|
||||
};
|
||||
|
||||
// sendToQueueOrg = (payload: any, persistent = true) => {
|
||||
// channel.sendToQueue(queue_org, Buffer.from(JSON.stringify(payload)), { persistent });
|
||||
// };
|
||||
sendToQueueOrg = (payload: any, persistent = true) => {
|
||||
channel.sendToQueue(queue_org, Buffer.from(JSON.stringify(payload)), { persistent });
|
||||
};
|
||||
|
||||
console.log("[AMQ] Listening for message...");
|
||||
|
||||
createConsumer(queue, channel, handler); //----> (3) Process Consumer
|
||||
// createConsumer(queue_org, channel, handler_org);
|
||||
createConsumer(queue_org, channel, handler_org);
|
||||
// createConsumer(queue2, channel, handler2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue