Skip to content

Commit 4aa184e

Browse files
committed
chore: rename reauthenticateAsync to reauthenticate
1 parent 7ae6dc3 commit 4aa184e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmap/connection_pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
548548
* @internal
549549
* Reauthenticate a connection
550550
*/
551-
async reauthenticateAsync(connection: Connection): Promise<Connection> {
551+
async reauthenticate(connection: Connection): Promise<Connection> {
552552
const authContext = connection.authContext;
553553
if (!authContext) {
554554
throw new MongoRuntimeError('No auth context found on connection.');

src/sdam/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class Server extends TypedEventEmitter<ServerEvents> {
340340
operationError instanceof MongoError &&
341341
operationError.code === MONGODB_ERROR_CODES.Reauthenticate
342342
) {
343-
conn = await this.pool.reauthenticateAsync(conn);
343+
conn = await this.pool.reauthenticate(conn);
344344
return await this.executeCommand(conn, ns, cmd, finalOptions);
345345
} else {
346346
throw operationError;

0 commit comments

Comments
 (0)