1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

fix rcache ttl

This commit is contained in:
yandd
2019-10-30 14:01:51 +08:00
committed by GitHub
parent dab0f3223f
commit f9c639af4e

View File

@ -81,7 +81,7 @@ func (c *cache) isValid(services []*registry.Service, ttl time.Time) bool {
} }
// time since ttl is longer than timeout // time since ttl is longer than timeout
if time.Since(ttl) > c.opts.TTL { if time.Since(ttl) > 0 {
return false return false
} }