New ๐ŸŒŠ wave for @helm

Commit a4dcd5e6

a4dcd5e69465Merged

Dmitrii Antonov <[email protected]> ยท 3 years ago ยท 1 file ยท ~1 modified

Description

Change Lock to RLock in cache read

Details

Commit
a4dcd5e69465
Parent
94f2955512ac

pkg/cache/charts_cache.gomodifiedView file

@@ -45,8 +45,8 @@
4545 chartName := filepath.Base(chart)
4646 chartFile := path.Join(c.cacheDir, fmt.Sprintf("%s-%s.tgz", chartName, version))
4747
48- c.lock.Lock()
49- defer c.lock.Unlock()
48+ c.lock.RLock()
49+ defer c.lock.RUnlock()
5050
5151 _, err := os.Stat(chartFile)
5252 if err == nil {