MCPcopy Index your code
hub / github.com/git-bug/git-bug / Close

Method Close

cache/repo_cache.go:191–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func (c *RepoCache) Close() error {
192 var errWait multierr.ErrWaitGroup
193 for _, mgmt := range c.subcaches {
194 errWait.Go(mgmt.Close)
195 }
196 err := errWait.Wait()
197 if err != nil {
198 return err
199 }
200
201 err = c.repo.Close()
202 if err != nil {
203 return err
204 }
205
206 return c.repo.LocalStorage().Remove(lockfile)
207}
208
209type BuildEventType int
210

Callers

nothing calls this directly

Calls 5

GoMethod · 0.95
WaitMethod · 0.95
CloseMethod · 0.65
RemoveMethod · 0.65
LocalStorageMethod · 0.65

Tested by

no test coverage detected