2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-01 08:30:49 +00:00

Fix usage of the done chan

This commit is contained in:
Alexander Neumann 2015-12-06 23:13:22 +01:00
parent 69a9adc4c3
commit d0ca118387

View File

@ -203,7 +203,7 @@ func (be *S3Backend) removeKeys(t backend.Type) {
for key := range be.List(backend.Data, doneChan) {
be.Remove(backend.Data, key)
}
doneChan <- struct{}{}
close(doneChan)
}
// Delete removes all restic keys