提交 871a5002 作者: kpcyrd

Increase 512kbytes object put limit to 2mbytes

License: MIT
Signed-off-by: 's avatarkpcyrd <git@rxv.cc>
上级 b5fbc012
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论