aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_cache.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-19 18:09:59 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-19 18:09:59 +0100
commitf2def3a9331080a02e57710a859d2aac608ed44c (patch)
tree2697224efb96110b65489877b5ba7d67d508eb5e /cache/bug_cache.go
parent60d40d60e9f91247b61f541888f1469bff44f573 (diff)
downloadgit-bug-f2def3a9331080a02e57710a859d2aac608ed44c.tar.gz
WIP
Diffstat (limited to 'cache/bug_cache.go')
-rw-r--r--cache/bug_cache.go6
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},
},
}