mirror of
https://github.com/restic/restic.git
synced 2025-10-09 06:01:12 +00:00
doc: fix various typos
Found via `codespell -q 3 -L atleast,iinclude,ist,programm,reenable,ser,uptodate`
This commit is contained in:
@@ -374,7 +374,7 @@ func TestBackendLoadCircuitBreakerCancel(t *testing.T) {
|
||||
err := retryBackend.Load(cctx, backend.Handle{Name: "other"}, 0, 0, nilRd)
|
||||
test.Equals(t, context.Canceled, err, "unexpected error")
|
||||
|
||||
// reset context and check that the cirucit breaker does not return an error
|
||||
// reset context and check that the circuit breaker does not return an error
|
||||
cctx, cancel = context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
err = retryBackend.Load(cctx, backend.Handle{Name: "other"}, 0, 0, nilRd)
|
||||
|
@@ -359,7 +359,7 @@ func (r *fileRestorer) downloadBlobs(ctx context.Context, packID restic.ID,
|
||||
}
|
||||
for file, offsets := range blob.files {
|
||||
for _, offset := range offsets {
|
||||
// avoid long cancelation delays for frequently used blobs
|
||||
// avoid long cancellation delays for frequently used blobs
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
Reference in New Issue
Block a user