diff options
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 a6c929ad..00f5ae95 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, } } |