Skip to content

Commit

Permalink
Remove unused ttl field from cache.Cache. (#2658)
Browse files Browse the repository at this point in the history
The cache itself isn't responsible for snapshot invalidation anymore,
but this field has been left behind.

Signed-off-by: Ben Luddy <bluddy@redhat.com>
  • Loading branch information
benluddy committed Feb 18, 2022
1 parent 40ee3de commit 094ae7b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/controller/registry/resolver/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ type Cache struct {
sp SourceProvider
sourcePriorityProvider SourcePriorityProvider
snapshots map[SourceKey]*snapshotHeader
ttl time.Duration
sem chan struct{}
m sync.RWMutex
}
Expand Down Expand Up @@ -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),
}

Expand Down

0 comments on commit 094ae7b

Please sign in to comment.