From 55c361a9d1ab059207c0a0d33a87346c4a11e1b7 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Mon, 23 Sep 2024 18:43:31 +0800 Subject: [PATCH] update Signed-off-by: Patrick Zheng --- dir/fs.go | 3 +-- verifier/crl/crl.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dir/fs.go b/dir/fs.go index 8803258a..93da420e 100644 --- a/dir/fs.go +++ b/dir/fs.go @@ -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()) } diff --git a/verifier/crl/crl.go b/verifier/crl/crl.go index c55b8357..e736bc28 100644 --- a/verifier/crl/crl.go +++ b/verifier/crl/crl.go @@ -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)