mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 01:10:10 +00:00
chore: auto format code
This commit is contained in:
@@ -306,7 +306,7 @@ func calculateDirSizeFast(root string, filesScanned, dirsScanned, bytesScanned *
|
||||
subDir := filepath.Join(dirPath, entry.Name())
|
||||
go func(p string) {
|
||||
defer wg.Done()
|
||||
sem <- struct{}{} // Acquire token
|
||||
sem <- struct{}{} // Acquire token
|
||||
defer func() { <-sem }() // Release token
|
||||
walk(p)
|
||||
}(subDir)
|
||||
|
||||
Reference in New Issue
Block a user