From 56d1f553f32c242f7cc5043b9ce2b719e2285838 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 18 Oct 2021 16:04:31 +0200 Subject: make repo responsible of creating the export end channel --- repo/export.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repo') diff --git a/repo/export.go b/repo/export.go index dd12077..bcadd06 100644 --- a/repo/export.go +++ b/repo/export.go @@ -29,7 +29,8 @@ func (r *Repo) Export(exporter export.Exporter) { chunks := r.loadChunks(r.versions) for i := range r.versions { var err error - input, end := exporter.ExportVersion() + end := make(chan bool) + input := exporter.ExportVersion(end) if len(chunks[i]) > 0 { for _, c := range chunks[i] { _, err := io.Copy(input.Chunks, c.Reader()) -- cgit v1.2.3