Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Sep 23, 2024
1 parent 969ca83 commit 55c361a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dir/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ func PluginFS() SysFS {

// CacheFS is the cache SysFS.
//
// To get the directory for crl file cache, one should use
// `CacheFS().SysFS(PathCRLFileCache)`.
// To get the root of crl file cache, use `CacheFS().SysFS(PathCRLCache)`.
func CacheFS() SysFS {
return NewSysFS(userCacheDirPath())
}
2 changes: 1 addition & 1 deletion verifier/crl/crl.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type fileCacheContent struct {

// NewFileCache creates a FileCache with root as the root directory
//
// An example for root is `dir.CacheFS().SysPath(dir.PathCRLFileCache)`
// An example for root is `dir.CacheFS().SysPath(dir.PathCRLCache)`
func NewFileCache(root string) (*FileCache, error) {
if err := os.MkdirAll(root, 0700); err != nil {
return nil, fmt.Errorf("failed to create crl file cache: %w", err)
Expand Down

0 comments on commit 55c361a

Please sign in to comment.