提交 c6622dd7 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #2980 from kpcyrd/feature/2mb_object_put

Increase 512kbytes object put limit to 2mbytes
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论