mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
move to create_container on rhea
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Container, ContainerOptions, EventContext, Message, ReceiverOptions } from 'rhea';
|
||||
import { ContainerOptions, EventContext, Message, ReceiverOptions } from 'rhea';
|
||||
import rhea = require("rhea");
|
||||
|
||||
import { ITriggerFunctions } from 'n8n-core';
|
||||
import {
|
||||
@@ -163,8 +164,7 @@ export class AmqpTrigger implements INodeType {
|
||||
durable = true;
|
||||
}
|
||||
|
||||
const container: Container = require('rhea');
|
||||
|
||||
const container = rhea.create_container();
|
||||
|
||||
let lastMsgId: string| number | Buffer | undefined = undefined;
|
||||
const self = this;
|
||||
@@ -179,7 +179,6 @@ export class AmqpTrigger implements INodeType {
|
||||
if(!context.message)
|
||||
return;
|
||||
|
||||
console.log("New Message on Amqp Trigger from " + container.id + " context conteaineer id: " + context.container.id);
|
||||
// ignore duplicate message check, don't think it's necessary, but it was in the rhea-lib example code
|
||||
if (context.message.message_id && context.message.message_id === lastMsgId) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user