Skip to content

Commit

Permalink
google: mark cache as ready after it got populated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mvo5 committed Oct 13, 2023
1 parent ded9133 commit e23da80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spread/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ func (p *googleProvider) projectImages(project string) ([]googleImage, error) {
Terms: toTerms(item.Description),
})
}
cache.ready = true

return cache.images, err
}
Expand Down

0 comments on commit e23da80

Please sign in to comment.