Skip to content

Commit 329722e

Browse files
committed
fix
1 parent 0d100e7 commit 329722e

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

OpenFlow/src/WebSocketServer.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,26 @@ export class WebSocketServer {
6060
})
6161
public static update_message_queue_count(cli: WebSocketServerClient) {
6262
if (!Config.prometheus_measure_queued_messages) return;
63-
const result: any = {};
63+
// const result: any = {};
6464
const keys = Object.keys(cli.messageQueue);
65-
keys.forEach(key => {
66-
try {
67-
const qmsg = cli.messageQueue[key];
68-
var o = qmsg.message;
69-
if (typeof o === "string") o = JSON.parse(o);
70-
const msg: Message = o;
71-
if (result[msg.command] == null) result[msg.command] = 0;
72-
result[msg.command]++;
73-
} catch (error) {
74-
WebSocketServer._logger.error(error);
75-
}
76-
});
77-
const keys2 = Object.keys(result);
65+
// keys.forEach(key => {
66+
// try {
67+
// const qmsg = cli.messageQueue[key];
68+
// var o = qmsg.message;
69+
// if (typeof o === "string") o = JSON.parse(o);
70+
// const msg: Message = o;
71+
// if (result[msg.command] == null) result[msg.command] = 0;
72+
// result[msg.command]++;
73+
// } catch (error) {
74+
// WebSocketServer._logger.error(error);
75+
// }
76+
// });
77+
// const keys2 = Object.keys(result);
7878
WebSocketServer.message_queue_count.reset();
7979
WebSocketServer.message_queue_count.labels(cli.id).set(keys.length);
80-
keys2.forEach(key => {
81-
WebSocketServer.message_queue_count.labels(cli.id, key).set(result[key]);
82-
});
80+
// keys2.forEach(key => {
81+
// WebSocketServer.message_queue_count.labels(cli.id, key).set(result[key]);
82+
// });
8383
}
8484
public static update_mongodb_watch_count(cli: WebSocketServerClient) {
8585
if (!Config.prometheus_measure__mongodb_watch) return;

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.1.173",
3+
"version": "1.1.174",
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": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.173
1+
1.1.174

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.1.173",
3+
"version": "1.1.174",
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": {

0 commit comments

Comments
 (0)