mirror of
https://github.com/restic/restic.git
synced 2024-12-22 15:57:07 +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
|
||||
New <-chan pipe.Job
|
||||
}
|
||||
|
@ -499,7 +499,7 @@ type archiveJob struct {
|
|||
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() {
|
||||
close(out)
|
||||
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
|
||||
}
|
||||
|
||||
jobs := ArchivePipe{}
|
||||
jobs := archivePipe{}
|
||||
|
||||
// use parent snapshot (if some was given)
|
||||
if pid != nil {
|
||||
|
|
|
@ -115,7 +115,7 @@ func TestArchivePipe(t *testing.T) {
|
|||
go testTreeWalker(done, treeCh)
|
||||
go testPipeWalker(done, pipeCh)
|
||||
|
||||
p := ArchivePipe{Old: treeCh, New: pipeCh}
|
||||
p := archivePipe{Old: treeCh, New: pipeCh}
|
||||
|
||||
ch := make(chan pipe.Job)
|
||||
|
||||
|
|
Loading…
Reference in a new issue