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

Method constructor

src/sdam/server_selection.ts:25–29  ·  src/sdam/server_selection.ts::DeprioritizedServers.constructor
(descriptions?: Iterable<ServerDescription>)

Source from the content-addressed store, hash-verified

23 private deprioritized: Set<string> = new Set();
24
25 constructor(descriptions?: Iterable<ServerDescription>) {
26 for (const description of descriptions ?? []) {
27 this.add(description);
28 }
29 }
30
31 add({ address }: ServerDescription) {
32 this.deprioritized.add(address);

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected