Skip to content

Commit

Permalink
Merge pull request #2980 from kpcyrd/feature/2mb_object_put
Browse files Browse the repository at this point in the history
Increase 512kbytes object put limit to 2mbytes
whyrusleeping authored Jul 20, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 29de750 + f84855d commit c6622dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/commands/object/object.go
Original file line number Diff line number Diff line change
@@ -21,10 +21,10 @@ import (
ft "github.com/ipfs/go-ipfs/unixfs"
)

// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 512k
var ErrObjectTooLarge = errors.New("input object was too large. limit is 512kbytes")
// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 2m
var ErrObjectTooLarge = errors.New("input object was too large. limit is 2mbytes")

const inputLimit = 512 * 1024
const inputLimit = 2 << 20

type Node struct {
Links []Link

0 comments on commit c6622dd

Please sign in to comment.