Use bitshifting for inputLimit
License: MIT Signed-off-by: kpcyrd <git@rxv.cc>
kpcyrd committed
Jul 20, 2016 at 03:28 UTC
f84855d9cae2f6a100015db0f179b81b72aec013
1 file changed
+1
-1
core/commands/object/object.go
+1
-1
@@ -24,7 +24,7 @@ import (
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 = 2 * 1024 * 1024
27
+const inputLimit = 2 << 20
28
29
type Node struct {
30
Links []Link