Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add region override function for region failover #219

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

xiajon
Copy link
Contributor

@xiajon xiajon commented Jun 20, 2024

Description of changes:

Adding region override function to enable region fail over in CCP

@xiajon xiajon requested a review from a team as a code owner June 20, 2024 21:11
@xiajon xiajon requested review from chauhuynh97 and haomingli2020 and removed request for a team June 20, 2024 21:11
logMetaData.region = region;
if (this.clientCache[region]) {
return this.clientCache[region];
}
var client = this._createAwsClient(options, logMetaData);
let client = this._createAwsClient(region, logMetaData);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ. by changing from options to region , we are backwards incompatible here . optionsInput is lost ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like its not exposed to the customer so the change is safe .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no other fields in optionsInput was used previous to this change

@xiajon xiajon merged commit 71f6d09 into master Jun 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants