Skip to content

Commit

Permalink
Increase 512kbytes object put limit to 2mbytes
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
  • Loading branch information
kpcyrd committed Jul 19, 2016
1 parent b5fbc01 commit 871a500
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 * 1024 * 1024

type Node struct {
Links []Link
Expand Down

0 comments on commit 871a500

Please sign in to comment.