Skip to content

Commit

Permalink
fix for graphs being stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Oct 29, 2020
1 parent 057bdb4 commit 559e0b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.90.72 (10-28-2020)
- Fixed issue with graphs becoming stuck on reload

# 0.90.71 (10-13-2020)
- Reverted Docker user in Dockerfile

Expand Down
4 changes: 1 addition & 3 deletions handlers/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ func (s Storage) List() map[string]Item {

//Get a cached content by key
func (s Storage) Get(key string) []byte {
s.mu.Lock()
defer s.mu.Unlock()
item := s.items[key]
if item.Expired() {
if s.items[key].Expired() {
CacheStorage.Delete(key)
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.90.71
0.90.72

0 comments on commit 559e0b9

Please sign in to comment.