blob: d86d0ebb68a3c4f4f9792db37b042f918ea0e3e6 [file] [log] [blame]
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fetch
// Limits for discovery worker.
const (
maxPackagesPerModule = 10000
// MaxFileSize is the maximum filesize that is allowed for reading.
// The fetch process should fail if it encounters a file exceeding
// this limit.
MaxFileSize = 45 * megabyte
)
const megabyte = 1000 * 1000