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

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

* Update dbfs.go
pull/3355/head
Darren Yu 5 months ago committed by GitHub
parent 95865add54
commit 3180c72b53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
}
}

Loading…
Cancel
Save