mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
Fix concurrent map writes for FeedIcon cache
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user