Don't return a pointer in Item.LastAccessed()
This commit is contained in:
parent
c63dcbab96
commit
78ff45eea0
5
cache.go
5
cache.go
|
@ -25,9 +25,8 @@ func (item Item) Expired() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the time at which this item was last accessed.
|
// Return the time at which this item was last accessed.
|
||||||
func (item Item) LastAccessed() *time.Time {
|
func (item Item) LastAccessed() time.Time {
|
||||||
t := time.Unix(0, item.Accessed)
|
return time.Unix(0, item.Accessed)
|
||||||
return &t
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue