mirror of https://github.com/statping/statping
Replaced delete with CacheStore.Delete inside Read to be lock safe fixes #129
parent
98f26a62fc
commit
3db4f1b373
|
@ -51,7 +51,7 @@ func (s Storage) Get(key string) []byte {
|
|||
|
||||
item := s.items[key]
|
||||
if item.Expired() {
|
||||
delete(s.items, key)
|
||||
CacheStorage.Delete(key)
|
||||
return nil
|
||||
}
|
||||
return item.Content
|
||||
|
|
Loading…
Reference in New Issue