提交 f84855d9 作者: kpcyrd

Use bitshifting for inputLimit

License: MIT
Signed-off-by: 's avatarkpcyrd <git@rxv.cc>
上级 871a5002
......@@ -24,7 +24,7 @@ import (
// 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 = 2 * 1024 * 1024
const inputLimit = 2 << 20
type Node struct {
Links []Link
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论