Fix mutexes in the cacher (again)

This commit is contained in:
2026-02-12 03:02:16 +03:00
parent 9e59fa18e4
commit 1b44637606
2 changed files with 5 additions and 6 deletions

View File

@@ -13,10 +13,6 @@ import (
// getStat returns file size without triggering conversion (for ls/stat).
func (c *Cacher) GetStat(sourcePath string) (int64, error) {
c.statMutex.RLock()
defer c.statMutex.RUnlock()
// First check cache
if size, ok := c.getCachedStat(sourcePath); ok {
return size, nil
}