diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-28 11:35:00 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-05-28 12:55:44 +0200 |
commit | fd099331ec82c21e1fd7ee1cdb9630b820714643 (patch) | |
tree | b4280f2b8dac094f6b0d6c9099df571b1241b0e6 /resources/image.go | |
parent | 43f1282e734f5a27f99ff6efb29190a234b3447a (diff) |
Fix Processed images count regression for multiple languages
Fixes #11002
Diffstat (limited to 'resources/image.go')
-rw-r--r-- | resources/image.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/image.go b/resources/image.go index c61e903ab..ad2f9de32 100644 --- a/resources/image.go +++ b/resources/image.go @@ -126,7 +126,7 @@ func (i *imageResource) getExif() *exif.ExifInfo { return enc.Encode(i.meta) } - _, i.metaInitErr = i.getSpec().imageCache.fileCache.ReadOrCreate(key, read, create) + _, i.metaInitErr = i.getSpec().ImageCache.fileCache.ReadOrCreate(key, read, create) }) if i.metaInitErr != nil { @@ -296,7 +296,7 @@ const imageProcWorkers = 1 var imageProcSem = make(chan bool, imageProcWorkers) func (i *imageResource) doWithImageConfig(conf images.ImageConfig, f func(src image.Image) (image.Image, error)) (images.ImageResource, error) { - img, err := i.getSpec().imageCache.getOrCreate(i, conf, func() (*imageResource, image.Image, error) { + img, err := i.getSpec().ImageCache.getOrCreate(i, conf, func() (*imageResource, image.Image, error) { imageProcSem <- true defer func() { <-imageProcSem |