aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_cache.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-22 00:48:00 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-22 00:48:00 +0100
commitd65e8837aa7bb1a6abb6892b9f2664e1b7edb02e (patch)
tree331b05b689182b4d2bf43fd7cf92ca03b055bff0 /cache/bug_cache.go
parent9b98fc06489353053564b431ac0c0d73a5c55a56 (diff)
downloadgit-bug-d65e8837aa7bb1a6abb6892b9f2664e1b7edb02e.tar.gz
cache: generic withSnapshot, some cleanup
Diffstat (limited to 'cache/bug_cache.go')
-rw-r--r--cache/bug_cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/bug_cache.go b/cache/bug_cache.go
index 7b3fa114..3466f186 100644
--- a/cache/bug_cache.go
+++ b/cache/bug_cache.go
@@ -28,7 +28,7 @@ func NewBugCache(b *bug.Bug, repo repository.ClockedRepo, getUserIdentity getUse
repo: repo,
entityUpdated: entityUpdated,
getUserIdentity: getUserIdentity,
- entity: &bug.WithSnapshot{Bug: b},
+ entity: &withSnapshot[*bug.Snapshot, bug.Operation]{Interface: b},
},
}
}