We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6f007 commit b874616Copy full SHA for b874616
src/client-side-encryption/auto_encrypter.ts
@@ -375,7 +375,7 @@ export class AutoEncrypter {
375
/**
376
* Cleans up the `_mongocryptdClient`, if present.
377
*/
378
- async teardown(): Promise<void> {
+ async close(): Promise<void> {
379
await this._mongocryptdClient?.close();
380
}
381
src/encrypter.ts
@@ -98,7 +98,7 @@ export class Encrypter {
98
async close(client: MongoClient): Promise<void> {
99
let error;
100
try {
101
- await this.autoEncrypter.teardown();
+ await this.autoEncrypter.close();
102
} catch (autoEncrypterError) {
103
error = autoEncrypterError;
104
0 commit comments