restic/internal/cache
Alexander Neumann fc5439a37a cache: Ensure failed downloads are retried
This fixes #1833, which consists of two different bugs:

 * The `defer` in `cacheFile()` may remove a channel from the
   `inProgress` map although it is not responsible for downloading the
   file

 * If the download fails, goroutines waiting for the file to be cached
   assumed that the file was there, there was no way to signal the
   error.
2018-06-09 17:50:56 +02:00
..
backend.go cache: Ensure failed downloads are retried 2018-06-09 17:50:56 +02:00
backend_test.go cache: Ensure failed downloads are retried 2018-06-09 17:50:56 +02:00
cache.go Add 'cache' command 2018-05-01 16:27:44 +02:00
dir.go cache: Correctly return dir for Windows/darwin 2017-11-20 06:11:18 +01:00
file.go small cleanup: 2017-10-25 12:03:55 -04:00
file_test.go Add cache 2017-09-24 21:54:53 +02:00
testing.go Add cache 2017-09-24 21:54:53 +02:00