mirror of
https://github.com/gofiber/storage.git
synced 2025-12-18 16:28:22 +08:00
Update comments in clickhouse.go
This commit is contained in:
committed by
GitHub
parent
f9d76aa3d6
commit
337546b077
@@ -101,7 +101,7 @@ func (s *Storage) Get(key string) ([]byte, error) {
|
||||
|
||||
// The result.Expiration.IsZero() was returning a false value even when the time was
|
||||
// set to be the zero value of the time.Time struct (Jan 1st 1970, 00:00:00 UTC)
|
||||
// so we had to change the comparision
|
||||
// so we had to change the comparison
|
||||
if !time.Unix(0, 0).Equal(result.Expiration) && result.Expiration.Before(time.Now().UTC()) {
|
||||
return []byte{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user