()
| 676 | } |
| 677 | |
| 678 | const topologyConnect = async () => { |
| 679 | try { |
| 680 | await this.topology?.connect(options); |
| 681 | } catch (error) { |
| 682 | this.topology?.close(); |
| 683 | throw error; |
| 684 | } |
| 685 | }; |
| 686 | |
| 687 | if (this.autoEncrypter) { |
| 688 | await this.autoEncrypter?.init(); |