aboutsummaryrefslogtreecommitdiffstats
path: root/cache/identity_cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/identity_cache.go')
-rw-r--r--cache/identity_cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/identity_cache.go b/cache/identity_cache.go
index 2ae55f2d..f9c928fe 100644
--- a/cache/identity_cache.go
+++ b/cache/identity_cache.go
@@ -21,8 +21,8 @@ func (i *IdentityCache) notifyUpdated() error {
return i.repoCache.identityUpdated(i.Identity.Id())
}
-func (i *IdentityCache) AddVersion(version *identity.Version) error {
- i.Identity.AddVersion(version)
+func (i *IdentityCache) Mutate(f func(identity.VersionMutator) identity.VersionMutator) error {
+ i.Identity.Mutate(f)
return i.notifyUpdated()
}