MCPcopy
hub / github.com/syncthing/syncthing / startCopier

Function startCopier

lib/model/folder_sendrecv_test.go:1323–1330  ·  view source on GitHub ↗
(ctx context.Context, f *sendReceiveFolder, pullChan chan<- pullBlockState, finisherChan chan<- *sharedPullerState)

Source from the content-addressed store, hash-verified

1321}
1322
1323func startCopier(ctx context.Context, f *sendReceiveFolder, pullChan chan<- pullBlockState, finisherChan chan<- *sharedPullerState) (chan copyBlocksState, *sync.WaitGroup) {
1324 copyChan := make(chan copyBlocksState)
1325 wg := new(sync.WaitGroup)
1326 wg.Go(func() {
1327 f.copierRoutine(ctx, copyChan, pullChan, finisherChan)
1328 })
1329 return copyChan, wg
1330}

Callers 3

TestCopyOwnerFunction · 0.85

Calls 1

copierRoutineMethod · 0.80

Tested by

no test coverage detected