diff options
author | Michael Muré <batolettre@gmail.com> | 2020-01-14 22:01:44 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-08 17:18:29 +0100 |
commit | 390b13c9ff69f3d42860b5f8109eb134459c40b1 (patch) | |
tree | fb2bf13f7395f424e38a6fda61771071eb923948 /cache/identity_cache.go | |
parent | ae2f942ef907161af0aba5f3511db72cf9801dca (diff) | |
download | git-bug-390b13c9ff69f3d42860b5f8109eb134459c40b1.tar.gz |
identity: rework mutation
Diffstat (limited to 'cache/identity_cache.go')
-rw-r--r-- | cache/identity_cache.go | 4 |
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() } |