diff options
author | Michael Muré <batolettre@gmail.com> | 2022-12-19 18:09:59 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-12-19 18:09:59 +0100 |
commit | f2def3a9331080a02e57710a859d2aac608ed44c (patch) | |
tree | 2697224efb96110b65489877b5ba7d67d508eb5e /cache/identity_cache.go | |
parent | 60d40d60e9f91247b61f541888f1469bff44f573 (diff) | |
download | git-bug-f2def3a9331080a02e57710a859d2aac608ed44c.tar.gz git-bug-f2def3a9331080a02e57710a859d2aac608ed44c.zip |
WIP
Diffstat (limited to 'cache/identity_cache.go')
-rw-r--r-- | cache/identity_cache.go | 10 |
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, } } |