Skip to content

Commit 5ea0fc7

Browse files
committed
chore: close naming
1 parent 7f711c4 commit 5ea0fc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client-side-encryption/auto_encrypter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export class AutoEncrypter {
375375
/**
376376
* Cleans up the `_mongocryptdClient`, if present.
377377
*/
378-
async teardown(): Promise<void> {
378+
async close(): Promise<void> {
379379
await this._mongocryptdClient?.close();
380380
}
381381

src/encrypter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class Encrypter {
9898
async close(client: MongoClient): Promise<void> {
9999
let error;
100100
try {
101-
await this.autoEncrypter.teardown();
101+
await this.autoEncrypter.close();
102102
} catch (autoEncrypterError) {
103103
error = autoEncrypterError;
104104
}

0 commit comments

Comments
 (0)