From e23da802c29314c272250d9a37e3dc5f439c6398 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 13 Oct 2023 11:51:23 +0200 Subject: [PATCH] google: mark cache as ready after it got populated The googleImagesCache is currently not marked `ready` AFAICT. This means while it is correctly build it is not used in subsequent calls to projectImages(). This commit set the cache to ready after it got populated. --- spread/google.go | 1 + 1 file changed, 1 insertion(+) diff --git a/spread/google.go b/spread/google.go index d1b08a5b..fe6633f9 100644 --- a/spread/google.go +++ b/spread/google.go @@ -369,6 +369,7 @@ func (p *googleProvider) projectImages(project string) ([]googleImage, error) { Terms: toTerms(item.Description), }) } + cache.ready = true return cache.images, err }