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

Method success

src/sdam/srv_polling.ts:103–107  ·  view source on GitHub ↗
(srvRecords: dns.SrvRecord[])

Source from the content-addressed store, hash-verified

101 }
102
103 success(srvRecords: dns.SrvRecord[]): void {
104 this.haMode = false;
105 this.schedule();
106 this.emit(SrvPoller.SRV_RECORD_DISCOVERY, new SrvPollingEvent(srvRecords));
107 }
108
109 failure(): void {
110 this.haMode = true;

Callers 2

_pollMethod · 0.95

Calls 2

scheduleMethod · 0.95
emitMethod · 0.65

Tested by

no test coverage detected