Skip to content

Commit

Permalink
Shift background.go to memory cache as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nagygergo committed Oct 24, 2024
1 parent 2717533 commit fe98290
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/registry/porch/background.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import (
"time"

configapi "github.com/nephio-project/porch/api/porchconfig/v1alpha1"
"github.com/nephio-project/porch/pkg/cache"
memorycache "github.com/nephio-project/porch/pkg/cache/memory"
"k8s.io/apimachinery/pkg/api/meta"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/klog/v2"
"sigs.k8s.io/controller-runtime/pkg/client"
)

func RunBackground(ctx context.Context, coreClient client.WithWatch, cache *cache.Cache) {
func RunBackground(ctx context.Context, coreClient client.WithWatch, cache *memorycache.Cache) {
b := background{
coreClient: coreClient,
cache: cache,
Expand All @@ -39,7 +39,7 @@ func RunBackground(ctx context.Context, coreClient client.WithWatch, cache *cach
// background manages background tasks
type background struct {
coreClient client.WithWatch
cache *cache.Cache
cache *memorycache.Cache
}

const (
Expand Down

0 comments on commit fe98290

Please sign in to comment.