MCPcopy Index your code
hub / github.com/perkeep/perkeep / copyWorker

Method copyWorker

pkg/server/sync.go:620–624  ·  view source on GitHub ↗
(res chan<- copyResult, work <-chan blob.SizedRef)

Source from the content-addressed store, hash-verified

618}
619
620func (sh *SyncHandler) copyWorker(res chan<- copyResult, work <-chan blob.SizedRef) {
621 for sb := range work {
622 res <- copyResult{sb, sh.copyBlob(context.TODO(), sb)}
623 }
624}
625
626func (sh *SyncHandler) copyBlob(ctx context.Context, sb blob.SizedRef) (err error) {
627 cs := sh.newCopyStatus(sb)

Callers 1

runSyncMethod · 0.95

Calls 1

copyBlobMethod · 0.95

Tested by

no test coverage detected