mirror of
https://github.com/gofiber/storage.git
synced 2025-09-29 22:02:21 +08:00
Fix unhandled error in Pebble
This commit is contained in:

committed by
GitHub

parent
ad190e72fe
commit
6f49a10c0c
@@ -69,8 +69,8 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
|||||||
secs := time.Now().Unix()
|
secs := time.Now().Unix()
|
||||||
|
|
||||||
if cache.Expires > 0 && cache.Expires <= secs {
|
if cache.Expires > 0 && cache.Expires <= secs {
|
||||||
s.db.Delete([]byte(key), nil)
|
err = s.db.Delete([]byte(key), nil)
|
||||||
return nil, nil
|
return nil, err
|
||||||
}
|
}
|
||||||
return cache.Data, nil
|
return cache.Data, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user