()
| 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; |