Skip to content
Prev Previous commit
Next Next commit
chore: close naming
  • Loading branch information
nbbeeken committed May 2, 2025
commit 5ea0fc7e406ccdd3df7338c3ae6b0f527a6978e9
2 changes: 1 addition & 1 deletion src/client-side-encryption/auto_encrypter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export class AutoEncrypter {
/**
* Cleans up the `_mongocryptdClient`, if present.
*/
async teardown(): Promise<void> {
async close(): Promise<void> {
await this._mongocryptdClient?.close();
}

Expand Down
2 changes: 1 addition & 1 deletion src/encrypter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Encrypter {
async close(client: MongoClient): Promise<void> {
let error;
try {
await this.autoEncrypter.teardown();
await this.autoEncrypter.close();
} catch (autoEncrypterError) {
error = autoEncrypterError;
}
Expand Down