aboutsummaryrefslogtreecommitdiff
path: root/dna
diff options
context:
space:
mode:
Diffstat (limited to 'dna')
-rw-r--r--dna/drive.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/dna/drive.go b/dna/drive.go
index 0f62d5e..317d2f4 100644
--- a/dna/drive.go
+++ b/dna/drive.go
@@ -89,7 +89,7 @@ func New(
}
}
-func (d *DnaDrive) ExportVersion() (export.Input, <-chan bool) {
+func (d *DnaDrive) ExportVersion(end chan<- bool) export.Input {
rChunks, wChunks := io.Pipe()
rRecipe, wRecipe := io.Pipe()
rFiles, wFiles := io.Pipe()
@@ -105,9 +105,8 @@ func (d *DnaDrive) ExportVersion() (export.Input, <-chan bool) {
Files: rFiles,
},
}
- end := make(chan bool)
go d.writeVersion(version.Output, end)
- return version.Input, end
+ return version.Input
}
func (d *DnaDrive) writeVersion(output export.Output, end chan<- bool) {