Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

fix: validate rabin args #32

Merged
merged 3 commits into from
Jun 6, 2019
Merged

fix: validate rabin args #32

merged 3 commits into from
Jun 6, 2019

Conversation

achingbrain
Copy link
Collaborator

go-ipfs requires a min chunk size of 16 and will use that for the max/avg if they are set smaller than the min, so perform the same sort of validation.

go-ipfs requires a min chunk size of 16 and will use that for the
max/avg if they are set smaller than the min, so perform the same
sort of validation.
@achingbrain achingbrain requested review from alanshaw and dirkmc June 5, 2019 11:11
Copy link

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Should we also add a check for when options.avgChunkSize is not defined?

@achingbrain
Copy link
Collaborator Author

Can do, though it's validated/defaulted by superstruct when the module is in use.

@dirkmc
Copy link

dirkmc commented Jun 6, 2019

In that case I don't think it's necessary to re-validate

@achingbrain
Copy link
Collaborator Author

Ah, did it anyway - can't hurt 😄

@dirkmc
Copy link

dirkmc commented Jun 6, 2019

Cool LGTM :)

@achingbrain achingbrain merged commit 55c5dba into master Jun 6, 2019
@achingbrain achingbrain deleted the validate-rabin-args branch June 6, 2019 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants