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

Remove upload leftovers on PUT request #28

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

IvanDev
Copy link
Contributor

@IvanDev IvanDev commented Apr 13, 2024

This PR removes upload state file from R2 on single-chunk multipart uploads.

Copy link
Collaborator

@gabivlj gabivlj left a comment

Choose a reason for hiding this comment

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

Can you instead remove this line and this one and put in a single place the removal? (outside the if else block basically)

await this.env.REGISTRY.delete(getRegistryUploadsPath(state));

@gabivlj
Copy link
Collaborator

gabivlj commented Apr 13, 2024

Thank you for the submission! I have one suggestion but the changes look good to me 👍

@IvanDev
Copy link
Contributor Author

IvanDev commented Apr 14, 2024

Sure!

@IvanDev IvanDev requested a review from gabivlj April 14, 2024 09:35
Copy link
Collaborator

@gabivlj gabivlj left a comment

Choose a reason for hiding this comment

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

Amazing thank you!

@gabivlj gabivlj merged commit e6d53e1 into cloudflare:main Apr 14, 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.

2 participants