From 094ae7bd1111188368e78ce872af86498894fd18 Mon Sep 17 00:00:00 2001 From: Ben Luddy Date: Thu, 17 Feb 2022 22:10:57 -0500 Subject: [PATCH] Remove unused ttl field from cache.Cache. (#2658) The cache itself isn't responsible for snapshot invalidation anymore, but this field has been left behind. Signed-off-by: Ben Luddy --- pkg/controller/registry/resolver/cache/cache.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/controller/registry/resolver/cache/cache.go b/pkg/controller/registry/resolver/cache/cache.go index 2d1c2cf859..7bbcb5bf90 100644 --- a/pkg/controller/registry/resolver/cache/cache.go +++ b/pkg/controller/registry/resolver/cache/cache.go @@ -86,7 +86,6 @@ type Cache struct { sp SourceProvider sourcePriorityProvider SourcePriorityProvider snapshots map[SourceKey]*snapshotHeader - ttl time.Duration sem chan struct{} m sync.RWMutex } @@ -121,7 +120,6 @@ func New(sp SourceProvider, options ...Option) *Cache { sp: sp, sourcePriorityProvider: constantSourcePriorityProvider(0), snapshots: make(map[SourceKey]*snapshotHeader), - ttl: 5 * time.Minute, sem: make(chan struct{}, MaxConcurrentSnapshotUpdates), }