MCPcopy
hub / github.com/mongodb/node-mongodb-native / topologyDescriptionDiff

Function topologyDescriptionDiff

etc/sdam_viz.js:71–85  ·  view source on GitHub ↗
(lhs, rhs)

Source from the content-addressed store, hash-verified

69}
70
71function topologyDescriptionDiff(lhs, rhs) {
72 const simpleFields = [
73 'type',
74 'setName',
75 'maxSetVersion',
76 'stale',
77 'compatible',
78 'compatibilityError',
79 'logicalSessionTimeoutMinutes',
80 'error',
81 'commonWireVersion'
82 ];
83
84 return diff(lhs, rhs, simpleFields, (x, y) => x === y).join(',\n');
85}
86
87function visualizeMonitoringEvents(client) {
88 function print(msg) {

Callers 1

Calls 1

diffFunction · 0.85

Tested by

no test coverage detected