mirror of
https://github.com/restic/restic.git
synced 2025-01-03 13:45:20 +00:00
restorer: unexport archive pipe
This commit is contained in:
parent
b335de6b81
commit
819b6da762
2 changed files with 4 additions and 4 deletions
|
@ -459,7 +459,7 @@ func (arch *Archiver) dirWorker(wg *sync.WaitGroup, p *Progress, done <-chan str
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ArchivePipe struct {
|
type archivePipe struct {
|
||||||
Old <-chan WalkTreeJob
|
Old <-chan WalkTreeJob
|
||||||
New <-chan pipe.Job
|
New <-chan pipe.Job
|
||||||
}
|
}
|
||||||
|
@ -499,7 +499,7 @@ type archiveJob struct {
|
||||||
new pipe.Job
|
new pipe.Job
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ArchivePipe) compare(done <-chan struct{}, out chan<- pipe.Job) {
|
func (a *archivePipe) compare(done <-chan struct{}, out chan<- pipe.Job) {
|
||||||
defer func() {
|
defer func() {
|
||||||
close(out)
|
close(out)
|
||||||
debug.Log("ArchivePipe.compare", "done")
|
debug.Log("ArchivePipe.compare", "done")
|
||||||
|
@ -638,7 +638,7 @@ func (arch *Archiver) Snapshot(p *Progress, paths []string, pid backend.ID) (*Sn
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
jobs := ArchivePipe{}
|
jobs := archivePipe{}
|
||||||
|
|
||||||
// use parent snapshot (if some was given)
|
// use parent snapshot (if some was given)
|
||||||
if pid != nil {
|
if pid != nil {
|
||||||
|
|
|
@ -115,7 +115,7 @@ func TestArchivePipe(t *testing.T) {
|
||||||
go testTreeWalker(done, treeCh)
|
go testTreeWalker(done, treeCh)
|
||||||
go testPipeWalker(done, pipeCh)
|
go testPipeWalker(done, pipeCh)
|
||||||
|
|
||||||
p := ArchivePipe{Old: treeCh, New: pipeCh}
|
p := archivePipe{Old: treeCh, New: pipeCh}
|
||||||
|
|
||||||
ch := make(chan pipe.Job)
|
ch := make(chan pipe.Job)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue