Merge pull request #893 from yandd/master

fix rcache ttl
This commit is contained in:
Asim Aslam 2019-10-30 21:31:08 +00:00 committed by GitHub
commit 74286c2939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}