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

Increase 512kbytes object put limit to 2mbytes #2980

Merged
merged 2 commits into from
Jul 20, 2016

Conversation

kpcyrd
Copy link
Contributor

@kpcyrd kpcyrd commented Jul 19, 2016

This resolves #2938

License: MIT
Signed-off-by: kpcyrd git@rxv.cc

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>

const inputLimit = 512 * 1024
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: I want to move towards using 2 << 20 for things like this. The go team does this on all go projects and it makes it really easy to read, ex:

1 << 10 == 1K
4 << 10 == 4K
2 << 20 == 2MB
4 << 30 == 4GB

Copy link

Choose a reason for hiding this comment

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

Agreed, although important to note it's Ki, Mi, and Gi :)

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
@kpcyrd
Copy link
Contributor Author

kpcyrd commented Jul 20, 2016

Pushed a new patch

@whyrusleeping
Copy link
Member

LGTM, thanks @kpcyrd !

@whyrusleeping whyrusleeping merged commit c6622dd into ipfs:master Jul 20, 2016
@kpcyrd kpcyrd deleted the feature/2mb_object_put branch July 20, 2016 13:43
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.

Increase 512 kbyte limit for ipfs object put
2 participants