mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
Fix condition
This commit is contained in:
parent
2233eac923
commit
78e1d52472
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func (c *cache) get(k string) []net.IPAddr {
|
|||
c.Lock()
|
||||
defer c.Unlock()
|
||||
e, contains := c.entries[k]
|
||||
if !contains || time.Now().Sub(e.t) < c.ttl {
|
||||
if !contains || time.Now().Sub(e.t) > c.ttl {
|
||||
return nil
|
||||
}
|
||||
return e.addrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue