Skip to content

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