Fix concurrent map writes for FeedIcon cache

This commit is contained in:
quoing
2022-06-21 09:39:06 +02:00
committed by nkanaev
parent 286cbff236
commit a8d160f9b1
2 changed files with 5 additions and 0 deletions

View File

@@ -177,7 +177,9 @@ func (s *Server) handleFeedIcon(c *router.Context) {
bytes: *(*feed).Icon,
etag: etag,
}
s.cache_mutex.Lock()
s.cache[cachekey] = cachedat
s.cache_mutex.Unlock()
}
icon := cachedat.(feedicon)