When trying to PreCache, wait for ImageCache to be available
This commit is contained in:
Vendored
+1
-1
@@ -70,7 +70,7 @@ type fileCache struct {
|
||||
mutex *sync.RWMutex
|
||||
}
|
||||
|
||||
func (fc *fileCache) Ready(ctx context.Context) bool {
|
||||
func (fc *fileCache) Ready(_ context.Context) bool {
|
||||
fc.mutex.RLock()
|
||||
defer fc.mutex.RUnlock()
|
||||
return fc.ready
|
||||
|
||||
Reference in New Issue
Block a user