Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Mar 16, 2023
1 parent 36c5df0 commit bca6508
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmap/connection_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
// use the provided connection, and do _not_ check it in after execution
fn(undefined, conn, (fnErr, result) => {
if (fnErr) {
this.withRequthentication(fnErr, conn, fn, callback);
this.withReauthentication(fnErr, conn, fn, callback);
} else {
callback(undefined, result);
}
Expand All @@ -558,7 +558,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
fn(err as MongoError, conn, (fnErr, result) => {
if (fnErr) {
if (conn) {
return this.withRequthentication(fnErr, conn, fn, callback);
return this.withReauthentication(fnErr, conn, fn, callback);
}
return callback(fnErr);
} else {
Expand All @@ -572,7 +572,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
});
}

private withRequthentication(
private withReauthentication(
fnErr: AnyError,
conn: Connection,
fn: WithConnectionCallback,
Expand Down

0 comments on commit bca6508

Please sign in to comment.