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

Function isDeprioritizedFactory

src/sdam/server_selection.ts:277–283  ·  view source on GitHub ↗
(
  deprioritized: DeprioritizedServers
)

Source from the content-addressed store, hash-verified

275}
276
277function isDeprioritizedFactory(
278 deprioritized: DeprioritizedServers
279): (server: ServerDescription) => boolean {
280 return server =>
281 // if any deprioritized servers equal the server, here we are.
282 !deprioritized.has(server);
283}
284
285function secondarySelector(
286 readPreference: ReadPreference,

Callers 1

secondarySelectorFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected