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

Function makeTopologyVersion

src/sdam/monitor.ts:463–470  ·  view source on GitHub ↗
(tv: TopologyVersion)

Source from the content-addressed store, hash-verified

461}
462
463function makeTopologyVersion(tv: TopologyVersion) {
464 return {
465 processId: tv.processId,
466 // tests mock counter as just number, but in a real situation counter should always be a Long
467 // TODO(NODE-2674): Preserve int64 sent from MongoDB
468 counter: Long.isLong(tv.counter) ? tv.counter : Long.fromNumber(tv.counter)
469 };
470}
471
472/** @internal */
473export interface RTTPingerOptions extends ConnectionOptions {

Callers 1

checkServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected