summaryrefslogtreecommitdiffstatshomepage
path: root/cache/identity_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/identity_cache.go
parent60d40d60e9f91247b61f541888f1469bff44f573 (diff)
downloadgit-bug-f2def3a9331080a02e57710a859d2aac608ed44c.tar.gz
git-bug-f2def3a9331080a02e57710a859d2aac608ed44c.zip
WIP
Diffstat (limited to 'cache/identity_cache.go')
-rw-r--r--cache/identity_cache.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cache/identity_cache.go b/cache/identity_cache.go
index a6c929add..00f5ae95f 100644
--- a/cache/identity_cache.go
+++ b/cache/identity_cache.go
@@ -10,17 +10,17 @@ var _ identity.Interface = &IdentityCache{}
// IdentityCache is a wrapper around an Identity for caching.
type IdentityCache struct {
- entityUpdated func(id entity.Id) error
repo repository.ClockedRepo
+ entityUpdated func(id entity.Id) error
*identity.Identity
}
-func NewIdentityCache(subcache *RepoCacheIdentity, id *identity.Identity) *IdentityCache {
+func NewIdentityCache(i *identity.Identity, repo repository.ClockedRepo, entityUpdated func(id entity.Id) error) *IdentityCache {
return &IdentityCache{
- entityUpdated: subcache.entityUpdated,
- repo: subcache.repo,
- Identity: id,
+ repo: repo,
+ entityUpdated: entityUpdated,
+ Identity: i,
}
}