Skip to content

fix: just do what the user asked #90

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

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

achingbrain
Copy link
Member

We change some defaults based on the CID version passed, this seems
like the wrong approach and debugging problems turns into whack-a-mole.

Let the calling code decide the settings for the various knobs and levers
instead.

BREAKING CHANGES: We previously did things like set rawLeaves to true based
on the CID version, now we do not.

We change some defaults based on the CID version passed, this seems
like the wrong approach and debugging problems turns into whack-a-mole.

Let the calling code decide the settings for the various knobs and levers
instead.

BREAKING CHANGES: We previously did things like set rawLeaves to true based
  on the CID version, now we do not.
@achingbrain
Copy link
Member Author

Will need a follow-up PR to js-ipfs to replicate these settings.

Copy link
Member

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

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

LGTM
Will this bite us in the ass running interop ?

@achingbrain
Copy link
Member Author

It shouldn't do, as long as we replicate the settings overriding in IPFS, which we will.

It will affect anyone using the importer directly, but this will go out as a major.

@achingbrain achingbrain merged commit 175ddad into master Nov 6, 2020
@achingbrain achingbrain deleted the fix/just-do-what-the-user-asked branch November 6, 2020 17:40
achingbrain added a commit that referenced this pull request Nov 6, 2020
We change some defaults based on the CID version passed, this seems like the wrong approach and debugging problems turns into whack-a-mole.

Let the calling code decide the settings for the various knobs and levers instead.

BREAKING CHANGE: We previously did things like set rawLeaves to true based on the CID version, now we do not.
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