MCPcopy
hub / github.com/perkeep/perkeep / noteNeeded

Method noteNeeded

pkg/index/index.go:1772–1778  ·  view source on GitHub ↗
(have, missing blob.Ref)

Source from the content-addressed store, hash-verified

1770}
1771
1772func (x *Index) noteNeeded(have, missing blob.Ref) error {
1773 if err := x.s.Set(keyMissing.Key(have, missing), "1"); err != nil {
1774 return err
1775 }
1776 x.noteNeededMemory(have, missing)
1777 return nil
1778}
1779
1780func (x *Index) noteNeededMemory(have, missing blob.Ref) {
1781 x.needs[have] = append(x.needs[have], missing)

Callers 2

ReceiveBlobMethod · 0.95
populateDeleteClaimMethod · 0.95

Calls 3

noteNeededMemoryMethod · 0.95
SetMethod · 0.65
KeyMethod · 0.65

Tested by

no test coverage detected