Skip to content

Commit c7a9a60

Browse files
committed
remove re-registering queues
1 parent 06253a2 commit c7a9a60

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

OpenFlow/src/amqpwrapper.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ export class amqpwrapper {
127127
}
128128
});
129129
// ROLLBACK
130-
var keys = Object.keys(this.exchanges);
131-
for (var i = 0; i < keys.length; i++) {
132-
var q1: amqpexchange = this.exchanges[keys[i]];
133-
this.AddExchangeConsumer(q1.exchange, q1.algorithm, q1.routingkey, q1.ExchangeOptions, null, q1.callback);
134-
}
135-
var keys = Object.keys(this.queues);
136-
for (var i = 0; i < keys.length; i++) {
137-
if (keys[i] != this.replyqueue.queue) {
138-
var q2: amqpqueue = this.queues[keys[i]];
139-
this.AddQueueConsumer(q2.queue, q2.QueueOptions, null, q2.callback);
140-
}
141-
}
130+
// var keys = Object.keys(this.exchanges);
131+
// for (var i = 0; i < keys.length; i++) {
132+
// var q1: amqpexchange = this.exchanges[keys[i]];
133+
// this.AddExchangeConsumer(q1.exchange, q1.algorithm, q1.routingkey, q1.ExchangeOptions, null, q1.callback);
134+
// }
135+
// var keys = Object.keys(this.queues);
136+
// for (var i = 0; i < keys.length; i++) {
137+
// if (keys[i] != this.replyqueue.queue) {
138+
// var q2: amqpqueue = this.queues[keys[i]];
139+
// this.AddQueueConsumer(q2.queue, q2.QueueOptions, null, q2.callback);
140+
// }
141+
// }
142142
} catch (error) {
143143
console.error(error);
144144
this.timeout = setTimeout(this.connect.bind(this), 1000);

OpenFlowNodeRED/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.0.51",
3+
"version": "1.0.52",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -47,4 +47,4 @@
4747
"unhandled-rejection": "^1.0.0",
4848
"winston": "^3.3.3"
4949
}
50-
}
50+
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.51
1+
1.0.52

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openiap",
3-
"version": "1.0.51",
3+
"version": "1.0.52",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -87,4 +87,4 @@
8787
"webpack": "^4.43.0",
8888
"webpack-cli": "^3.3.12"
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)