Skip to content

Commit d30df56

Browse files
committed
OPC-UA-Server: refactor.
1 parent abeee6e commit d30df56

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/OPC-UA-Server/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ process.on('uncaughtException', (err) =>
732732
},
733733
]
734734

735-
let changeStream = rtCollection.watch(csPipeline, {
735+
const changeStream = rtCollection.watch(csPipeline, {
736736
fullDocument: 'updateLookup',
737737
})
738738

@@ -758,12 +758,9 @@ process.on('uncaughtException', (err) =>
758758
const v = convertValueVariant(change.fullDocument)
759759
for (let i = 0; i < servers.length; i++) {
760760
try {
761-
let srv = servers[i]
761+
const srv = servers[i]
762762

763-
//if (change.fullDocument.ungroupedDescription === 'Random')
764-
// change.fullDocument.ungroupedDescription = 'Random'
765-
766-
let m = srv._metrics[change.fullDocument?.tag]
763+
const m = srv._metrics[change.fullDocument?.tag]
767764
if (m !== undefined) {
768765
m.setValueFromSource(
769766
{

0 commit comments

Comments
 (0)