Skip to content

Commit

Permalink
the new LRU cache is enabled if experimental cache size is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
prasadborole1 committed Aug 24, 2022
1 parent e71f1c9 commit f335665
Show file tree
Hide file tree
Showing 11 changed files with 2,498 additions and 711 deletions.
3 changes: 1 addition & 2 deletions pkg/agent/api/delegatedidentity/v1/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"testing"
"time"

"github.com/andres-erbsen/clock"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiffe/go-spiffe/v2/bundle/spiffebundle"
Expand Down Expand Up @@ -812,5 +811,5 @@ func (m *FakeManager) SubscribeToBundleChanges() *cache.BundleStream {

func newTestCache() *cache.Cache {
log, _ := test.NewNullLogger()
return cache.New(log, trustDomain1, bundle1, telemetry.Blackhole{}, 0, clock.NewMock())
return cache.New(log, trustDomain1, bundle1, telemetry.Blackhole{})
}
Loading

0 comments on commit f335665

Please sign in to comment.