diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2020-09-30 13:50:55 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2020-10-13 00:13:32 +0300 |
commit | c5aad78f61c04aca8d835a87df027ee70357aaae (patch) | |
tree | 3f870889ab12f23c03750e571657c413c3e2ecda /internal/vfs/zip/archive.go | |
parent | e41a1b9f32072f253d6b13d40c111aa5c42f1899 (diff) |
Remove extra : from cache key
Diffstat (limited to 'internal/vfs/zip/archive.go')
-rw-r--r-- | internal/vfs/zip/archive.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/vfs/zip/archive.go b/internal/vfs/zip/archive.go index 158fb87b..39b624da 100644 --- a/internal/vfs/zip/archive.go +++ b/internal/vfs/zip/archive.go @@ -168,7 +168,7 @@ func (a *zipArchive) Open(ctx context.Context, name string) (vfs.File, error) { return nil, os.ErrNotExist } - item, err := a.fs.dataOffsetCache.Fetch(a.cacheKey+":"+name, DataOffsetCacheInterval, func() (interface{}, error) { + item, err := a.fs.dataOffsetCache.Fetch(a.cacheKey+name, DataOffsetCacheInterval, func() (interface{}, error) { return file.DataOffset() }) if err != nil { @@ -211,7 +211,7 @@ func (a *zipArchive) Readlink(ctx context.Context, name string) (string, error) return "", errNotSymlink } - item, err := a.fs.readlinkCache.Fetch(a.cacheKey+":"+name, ReadLinkCacheInterval, func() (interface{}, error) { + item, err := a.fs.readlinkCache.Fetch(a.cacheKey+name, ReadLinkCacheInterval, func() (interface{}, error) { rc, err := file.Open() if err != nil { return nil, err |