fix rcache ttl
This commit is contained in:
parent
dab0f3223f
commit
f9c639af4e
2
registry/cache/cache.go
vendored
2
registry/cache/cache.go
vendored
@ -81,7 +81,7 @@ func (c *cache) isValid(services []*registry.Service, ttl time.Time) bool {
|
||||
}
|
||||
|
||||
// time since ttl is longer than timeout
|
||||
if time.Since(ttl) > c.opts.TTL {
|
||||
if time.Since(ttl) > 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user