Increase 512kbytes object put limit to 2mbytes
License: MIT Signed-off-by: kpcyrd <git@rxv.cc>
kpcyrd committed
Jul 19, 2016 at 18:57 UTC
871a500294106e2d0071b74141823ecb2c089ed0
1 file changed
+3
-3
core/commands/object/object.go
+3
-3
@@ -21,10 +21,10 @@ import (
21
ft "github.com/ipfs/go-ipfs/unixfs"
22
)
23
24
-// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 512k
25
-var ErrObjectTooLarge = errors.New("input object was too large. limit is 512kbytes")
24
+// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 2m
25
+var ErrObjectTooLarge = errors.New("input object was too large. limit is 2mbytes")
26
27
-const inputLimit = 512 * 1024
27
+const inputLimit = 2 * 1024 * 1024
28
29
type Node struct {
30
Links []Link