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:
HuKeping
2016-04-13 21:06:48 +08:00
parent 812acce15f
commit fd0b628e70

View File

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