()
| 67 | } |
| 68 | |
| 69 | func (e *CachedEntityBase[SnapT, OpT]) Commit() error { |
| 70 | e.mu.Lock() |
| 71 | err := e.entity.Commit(e.repo) |
| 72 | if err != nil { |
| 73 | e.mu.Unlock() |
| 74 | return err |
| 75 | } |
| 76 | e.mu.Unlock() |
| 77 | return e.notifyUpdated() |
| 78 | } |
| 79 | |
| 80 | func (e *CachedEntityBase[SnapT, OpT]) CommitAsNeeded() error { |
| 81 | e.mu.Lock() |
nothing calls this directly
no test coverage detected