fix: linear

This commit is contained in:
崔竞宁
2022-12-08 23:38:37 +08:00
parent 9fde45f6fd
commit 7d4accc441
3 changed files with 28 additions and 3 deletions

View File

@@ -45,9 +45,9 @@ func (c *Copyer) prepare(ctx context.Context, indexed <-chan *baseJob) <-chan *w
return
}
wj := &writeJob{baseJob: job, src: file, ch: make(chan struct{})}
wj := newWriteJob(job, file, c.fromDevice.linear)
ch <- wj
<-wj.ch
wj.wait()
}
}
})