Skip to content

Commit 8f09257

Browse files
committed
Remove unused ttl field from cache.Cache.
The cache itself isn't responsible for snapshot invalidation anymore, but this field has been left behind. Signed-off-by: Ben Luddy <[email protected]>
1 parent 8119718 commit 8f09257

File tree

1 file changed

+0
-2
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+0
-2
lines changed

pkg/controller/registry/resolver/cache/cache.go

-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ type Cache struct {
8686
sp SourceProvider
8787
sourcePriorityProvider SourcePriorityProvider
8888
snapshots map[SourceKey]*snapshotHeader
89-
ttl time.Duration
9089
sem chan struct{}
9190
m sync.RWMutex
9291
}
@@ -121,7 +120,6 @@ func New(sp SourceProvider, options ...Option) *Cache {
121120
sp: sp,
122121
sourcePriorityProvider: constantSourcePriorityProvider(0),
123122
snapshots: make(map[SourceKey]*snapshotHeader),
124-
ttl: 5 * time.Minute,
125123
sem: make(chan struct{}, MaxConcurrentSnapshotUpdates),
126124
}
127125

0 commit comments

Comments
 (0)