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

chunks to upload to chunks manager with boolean workaround #1430

Merged
merged 2 commits into from Mar 12, 2024

Conversation

JasonPaulGithub
Copy link
Contributor

@JasonPaulGithub JasonPaulGithub commented Mar 11, 2024

Description

  • I've made things a little more generic by moving out the chunks to upload from the iterative upload function. The result satisfies both the upload and the acc pac code that uses it.

  • I plan to work this further and rearrange the way chunk manager and files api is used. but this will do for now.

  • messaging code will be tidied up

  • This will affect code by @bochaco a little bit

  • Functions should do only one thing, so I've removed the counter feature inside the iterative uploader. That's a cool way to do it but the need for a counter has been decoupled.

I know it's not good to use the boolean flag for a different response. We're going to need to bridge the gap between acc pac and upload over its mutual use of iterative upload. They are using it in the same way yet require a separate response. Polymorphism / a builder can solve this. Either way the boolean flag we have will have to do for now as things aren't that complicated.

@JasonPaulGithub JasonPaulGithub self-assigned this Mar 11, 2024
@JasonPaulGithub JasonPaulGithub marked this pull request as ready for review March 11, 2024 22:53
@JasonPaulGithub JasonPaulGithub changed the title feat: moved param to outside calc ctu to mgr Mar 11, 2024
@JasonPaulGithub JasonPaulGithub changed the title ctu to mgr chunks to upload to chunks manager Mar 12, 2024
@JasonPaulGithub JasonPaulGithub changed the title chunks to upload to chunks manager chunks to upload to chunks manager with boolean workaround Mar 12, 2024
@JasonPaulGithub JasonPaulGithub added Refactor Small Pull request is small labels Mar 12, 2024
@JasonPaulGithub JasonPaulGithub added this pull request to the merge queue Mar 12, 2024
Merged via the queue into maidsafe:main with commit a2b13e2 Mar 12, 2024
56 checks passed
@JasonPaulGithub JasonPaulGithub deleted the ctu_to_mgr branch March 12, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants