diff options
Diffstat (limited to 'cache/bug_cache.go')
-rw-r--r-- | cache/bug_cache.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cache/bug_cache.go b/cache/bug_cache.go index 0fd52ff1..7b3fa114 100644 --- a/cache/bug_cache.go +++ b/cache/bug_cache.go @@ -22,12 +22,12 @@ type BugCache struct { CachedEntityBase[*bug.Snapshot, bug.Operation] } -func NewBugCache(subcache *RepoCacheBug, getUserIdentity func() (identity.Interface, error), b *bug.Bug) *BugCache { +func NewBugCache(b *bug.Bug, repo repository.ClockedRepo, getUserIdentity getUserIdentityFunc, entityUpdated func(id entity.Id) error) *BugCache { return &BugCache{ CachedEntityBase: CachedEntityBase[*bug.Snapshot, bug.Operation]{ - entityUpdated: subcache.entityUpdated, + repo: repo, + entityUpdated: entityUpdated, getUserIdentity: getUserIdentity, - repo: subcache.repo, entity: &bug.WithSnapshot{Bug: b}, }, } |