When trying to PreCache, wait for ImageCache to be available

This commit is contained in:
Deluan
2022-12-28 23:01:52 -05:00
parent 0c7c6ba020
commit cc14485194
3 changed files with 30 additions and 15 deletions
+1 -1
View File
@@ -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