1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-02-03 04:56:48 +00:00
restic/internal/archiver
Alexander Neumann 1140950d7b scanner: Use context only for cancellation
When the scanner is slower than the actual backup, the tomb cancels the
context passed to Scan(), which then returns ctx.Err(). In the end, the
main function prints an error message that is not helpful ("Context
cancelled") and exits with an error code although no error occurred.

The code now ignores the error in the context and just uses it for
cancellation. The scanner is not supposed to return an error anyway.

Closes #1978
2018-09-08 18:53:12 +02:00
..
archiver.go
archiver_test.go clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
blob_saver.go
blob_saver_test.go
buffer.go
doc.go
file_saver.go
file_saver_test.go
index_uploader.go
scanner.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
scanner_test.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
testing.go
testing_test.go
tree.go clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
tree_saver.go
tree_saver_test.go
tree_test.go