mirror of https://github.com/perkeep/perkeep.git
schema: use existing constant instead of literal
Change-Id: Ia988f4c897788be696326de9a75973161ae3d550
This commit is contained in:
parent
d5505cbf28
commit
da3ce4a13b
|
@ -279,7 +279,7 @@ type superset struct {
|
|||
|
||||
func parseSuperset(r io.Reader) (*superset, error) {
|
||||
var ss superset
|
||||
if err := json.NewDecoder(io.LimitReader(r, 1<<20)).Decode(&ss); err != nil {
|
||||
if err := json.NewDecoder(io.LimitReader(r, MaxSchemaBlobSize)).Decode(&ss); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ss, nil
|
||||
|
|
Loading…
Reference in New Issue