fix(dbfs): folder summary type error in cache (#3332)

* fix(dbfs): folder summary type error in cache

* Update dbfs.go
This commit is contained in:
Darren Yu
2026-02-24 14:37:57 +08:00
committed by GitHub
parent 95865add54
commit 3180c72b53

View File

@@ -494,7 +494,7 @@ func (f *DBFS) Get(ctx context.Context, path *fs.URI, opts ...fs.Option) (fs.Fil
// cache the summary
newSummary.CalculatedAt = time.Now()
f.cache.Set(fmt.Sprintf("%s%d", folderSummaryCachePrefix, target.ID()), newSummary, f.settingClient.FolderPropsCacheTTL(ctx))
f.cache.Set(fmt.Sprintf("%s%d", folderSummaryCachePrefix, target.ID()), *newSummary, f.settingClient.FolderPropsCacheTTL(ctx))
target.FileFolderSummary = newSummary
}
}