()
| 43 | } |
| 44 | |
| 45 | func (i *IdentityCache) Commit() error { |
| 46 | i.mu.Lock() |
| 47 | err := i.Identity.Commit(i.repo) |
| 48 | i.mu.Unlock() |
| 49 | if err != nil { |
| 50 | return err |
| 51 | } |
| 52 | return i.notifyUpdated() |
| 53 | } |
| 54 | |
| 55 | func (i *IdentityCache) CommitAsNeeded() error { |
| 56 | i.mu.Lock() |
no test coverage detected