Skip to content

Commit

Permalink
chore: adjust code
Browse files Browse the repository at this point in the history
  • Loading branch information
fireyun committed Sep 3, 2024
1 parent 9ed56fd commit 42d1462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (c *Cache) CopyToFile(ci *sfs.ConfigItemMetaV1, filePath string) bool {
return true
}

// ensureCache ensures cache exist, if not existthen download file and add it to cache file
// ensureCache ensures cache exist, if not exist, then download file and add it to cache file
func (c *Cache) ensureCache(ci *sfs.ConfigItemMetaV1) bool {
if ci.ContentSpec.ByteSize > uint64(MaxSingleFileCacheSizeRate*c.thrsholdGB*GByte) {
logger.Warn("config item size is too large, skip copy to file",
Expand Down

0 comments on commit 42d1462

Please sign in to comment.