schema: use existing constant instead of literal

Change-Id: Ia988f4c897788be696326de9a75973161ae3d550
This commit is contained in:
Brad Fitzpatrick 2014-08-07 11:04:09 -07:00
parent d5505cbf28
commit da3ce4a13b
1 changed files with 1 additions and 1 deletions

View File

@ -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