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

op: New package containing the high-level upload code #3

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Jun 11, 2024

So mantle can easily reuse the code without mucking with making them parallel and such:

  • move the code over to the op subpackage
  • added error codes, so mantle can react to a specific error (the blob being already uploaded IIRC)
  • added context.Context parameter to an upload function to reduce the amount of context.TODO()
  • fixed some copy-pasta in parameter description

@krnowak krnowak requested a review from a team June 11, 2024 15:25
op/upload.go Outdated Show resolved Hide resolved
op/upload.go Outdated Show resolved Hide resolved
op/upload.go Outdated Show resolved Hide resolved
op/upload.go Outdated Show resolved Hide resolved
@krnowak krnowak requested a review from tormath1 June 12, 2024 11:52
Copy link

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

LGTM.
EDIT: Feel free to squash the commits into one.

So mantle can easily reuse the code without mucking with making them
parallel and such.
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