Use Mutex for synchronization in imageCache

This commit is contained in:
Ted Yu 2019-06-01 15:48:52 -07:00 committed by Ted Yu
parent 82bfa667ed
commit f6edee0fe1

View File

@ -107,8 +107,8 @@ type realImageGCManager struct {
// imageCache caches latest result of ListImages.
type imageCache struct {
// sync.RWMutex is the mutex protects the image cache.
sync.RWMutex
// sync.Mutex is the mutex protects the image cache.
sync.Mutex
// images is the image cache.
images []container.Image
}