Skip to content

Commit

Permalink
rollback driver connection provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlamz committed Jun 5, 2024
1 parent 00374ac commit 88351f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/lib/driver_connection_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export class DriverConnectionProvider implements ConnectionProvider {
throw e;
}

// if (!JSON.stringify(e).includes("Error: getaddrinfo ENOTFOUND")) {
// throw e;
// }
if (!JSON.stringify(e).includes("Error: getaddrinfo ENOTFOUND")) {
throw e;
}

if (!this.rdsUtils.isRdsDns(hostInfo.host) || !this.rdsUtils.isGreenInstance(hostInfo.host)) {
throw e;
Expand Down Expand Up @@ -95,7 +95,6 @@ export class DriverConnectionProvider implements ConnectionProvider {
JSON.stringify(maskProperties(props))
);

await pluginService.tryClosingTargetClient();
const newTargetClient = pluginService.createTargetClient(props);
const fixedConnFunc = pluginService.getConnectFunc(newTargetClient);
await fixedConnFunc();
Expand Down

0 comments on commit 88351f2

Please sign in to comment.