From 390b13c9ff69f3d42860b5f8109eb134459c40b1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 14 Jan 2020 22:01:44 +0100 Subject: identity: rework mutation --- cache/identity_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache') 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() } -- cgit