Skip to content

Commit e015ccf

Browse files
committed
chore: some clean up
1 parent cec8c27 commit e015ccf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/common/connectionManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ export class ConnectionManager extends EventEmitter<ConnectionManagerEvents> {
207207

208208
private onOidcAuthFailed(error: unknown): void {
209209
if (this.state.tag === "connecting" && this.state.connectionStringAuthType?.startsWith("oidc")) {
210-
this.changeState("connection-errored", { tag: "errored", errorReason: String(error) });
211-
void this.disconnect();
210+
void this.disconnect().then(() => {
211+
this.changeState("connection-errored", { tag: "errored", errorReason: String(error) });
212+
});
212213
}
213214
}
214215

src/common/logger.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ export const LogId = {
6060
exportLockError: mongoLogId(1_007_008),
6161

6262
oidcFlow: mongoLogId(1_008_001),
63-
oidcClientError: mongoLogId(1_008_002),
64-
oidcAuthFailed: mongoLogId(1_008_003),
6563
} as const;
6664

6765
interface LogPayload {

0 commit comments

Comments
 (0)