()
| 53 | } |
| 54 | |
| 55 | func (i *IdentityCache) CommitAsNeeded() error { |
| 56 | i.mu.Lock() |
| 57 | err := i.Identity.CommitAsNeeded(i.repo) |
| 58 | i.mu.Unlock() |
| 59 | if err != nil { |
| 60 | return err |
| 61 | } |
| 62 | return i.notifyUpdated() |
| 63 | } |
| 64 | |
| 65 | func (i *IdentityCache) Lock() { |
| 66 | i.mu.Lock() |
nothing calls this directly
no test coverage detected