MCPcopy Index your code
hub / github.com/devspace-sh/devspace / updateDownloadChanges

Method updateDownloadChanges

pkg/devspace/sync/downstream.go:276–288  ·  view source on GitHub ↗
(download []*remote.Change)

Source from the content-addressed store, hash-verified

274}
275
276func (d *downstream) updateDownloadChanges(download []*remote.Change) []*remote.Change {
277 d.sync.fileIndex.fileMapMutex.Lock()
278 defer d.sync.fileIndex.fileMapMutex.Unlock()
279
280 newChanges := make([]*remote.Change, 0, len(download))
281 for _, change := range download {
282 if d.shouldKeep(change) {
283 newChanges = append(newChanges, change)
284 }
285 }
286
287 return newChanges
288}
289
290func (d *downstream) initDownload(download []*remote.Change) error {
291 reader, writer := io.Pipe()

Callers 1

applyChangesMethod · 0.95

Calls 3

shouldKeepMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected