(repo repository.RepoClock, f func(*identity.Mutator))
| 33 | } |
| 34 | |
| 35 | func (i *IdentityCache) Mutate(repo repository.RepoClock, f func(*identity.Mutator)) error { |
| 36 | i.mu.Lock() |
| 37 | err := i.Identity.Mutate(repo, f) |
| 38 | i.mu.Unlock() |
| 39 | if err != nil { |
| 40 | return err |
| 41 | } |
| 42 | return i.notifyUpdated() |
| 43 | } |
| 44 | |
| 45 | func (i *IdentityCache) Commit() error { |
| 46 | i.mu.Lock() |
nothing calls this directly
no test coverage detected