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

Method schedule

src/sdam/srv_polling.ts:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92 // TODO(NODE-4994): implement new logging logic for SrvPoller failures
93 schedule(): void {
94 if (this._timeout) {
95 clearTimeout(this._timeout);
96 }
97
98 this._timeout = setTimeout(() => {
99 this._poll().then(undefined, squashError);
100 }, this.intervalMS);
101 }
102
103 success(srvRecords: dns.SrvRecord[]): void {
104 this.haMode = false;

Callers 3

startMethod · 0.95
successMethod · 0.95
failureMethod · 0.95

Calls 1

_pollMethod · 0.95

Tested by

no test coverage detected