Fix concurrent map writes for FeedIcon cache
This commit is contained in:
parent
286cbff236
commit
a8d160f9b1
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue