mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Update some comments
If we update the maximum value for "infinite" in the future, it is possible that we forget to update this comments and thus leads misunderstanding. Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
@@ -39,7 +39,8 @@ func (f *FilesystemStore) getPath(name string) string {
|
||||
}
|
||||
|
||||
// GetMeta returns the meta for the given name (a role) up to size bytes
|
||||
// If size is -1, this corresponds to "infinite," but we cut off at 100MB
|
||||
// If size is -1, this corresponds to "infinite," but we cut off at the
|
||||
// predefined threshold "notary.MaxDownloadSize".
|
||||
func (f *FilesystemStore) GetMeta(name string, size int64) ([]byte, error) {
|
||||
meta, err := ioutil.ReadFile(f.getPath(name))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user