Initial Commit

This commit is contained in:
2020-07-08 15:37:09 +02:00
commit 549ecd137f
1746 changed files with 292109 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
'use strict';
module.exports = function allServersUnknown(topologyDescription) {
if (topologyDescription == null ||
topologyDescription.constructor.name !== 'TopologyDescription') {
return false;
}
return Array.from(topologyDescription.servers.values()).
every(server => server.type === 'Unknown');
};