From cb16a667cc0a91881c08054799001c376fbb6852 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 31 Dec 2022 14:55:15 +1300 Subject: [PATCH] banner: use reposCacheByName --- page_imageredir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page_imageredir.go b/page_imageredir.go index 6866519..acb188d 100644 --- a/page_imageredir.go +++ b/page_imageredir.go @@ -9,7 +9,7 @@ func (this *Application) Bannerpage(w http.ResponseWriter, r *http.Request, repo this.reposMut.RLock() defer this.reposMut.RUnlock() - ridx, ok := this.reposAlphabeticalOrder[repoName] + ridx, ok := this.reposCacheByName[repoName] if !ok { w.Header().Set(`Location`, `/static/no_image.png`) w.WriteHeader(301)