-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(S3ClientProvider): Reduce complexity of
generateClient
(#248)
* refactor(S3ClientProvider): Extract getClientForBucket method, call from generateSyncClient and generateAsyncClient * refactor(S3ClientProvider): Extract getBucketRegionFromResponse * refactor(S3ClientProvider): Move getClientForRegion call outside of the try * refactor(S3ClientProvider): extract determineBucketLocation method * logs(S3ClientProvider): update * refactor(S3ClientProvider): extract methods to check status codes of S3Exceptions * refactor(S3ClientProvider): extract getBucketLocation and getBucketLocationFromHead methods * logger(S3ClientProvider): make it static private and final; use appropriate name * cleanup(S3ClientProvider): Remove constructor used only in tests * cleanup(S3ClientProvider): Reduce visibility of methods
- Loading branch information
Showing
4 changed files
with
78 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters