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
  • Loading branch information
whyrusleeping authored Jul 20, 2016
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
Expand Up @@ -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
Expand Down

0 comments on commit c6622dd

Please sign in to comment.