Skip to content

Commit

Permalink
TODO added.
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Nov 11, 2023
1 parent cb00b22 commit b209aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faviconProxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func cacheFavicon(urlParam string, content []byte) {
defer FaviconCache.Unlock()

// Delete random keys until the cache is small enough
for len(FaviconCache.cache) > 1000 {
for len(FaviconCache.cache) > 1000 { // TODO expose as a config option
for key := range FaviconCache.cache {
delete(FaviconCache.cache, key)
break
Expand Down

0 comments on commit b209aba

Please sign in to comment.