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

feat(medusa-file-s3): S3 file service reusing a single AWS client #3260

Merged
merged 3 commits into from
Feb 19, 2023
Merged

feat(medusa-file-s3): S3 file service reusing a single AWS client #3260

merged 3 commits into from
Feb 19, 2023

Conversation

pevey
Copy link
Contributor

@pevey pevey commented Feb 14, 2023

This PR makes minor changes to /packages/medusa-file-s3/src/services/s3.js to establish only one instance of the s3 client and reuse that instance throughout the service.

Previously, a new instance was created each time an operation was performed.

Separately, I am working on updating the service to work with v3 of the sdk.

@pevey pevey requested a review from a team as a code owner February 14, 2023 15:06
@changeset-bot
Copy link

changeset-bot bot commented Feb 14, 2023

🦋 Changeset detected

Latest commit: b833d95

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
medusa-file-s3 Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@olivermrbl olivermrbl changed the title update s3 file service to reuse one s3 client feat(medusa-file-s3): S3 file service reusing a single AWS client Feb 19, 2023
@olivermrbl olivermrbl merged commit 13c200a into medusajs:develop Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants