2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-26 20:30:19 +00:00

swift: restore context err check for list()

This commit is contained in:
Michael Eischer 2021-09-24 21:19:46 +02:00
parent e7ec0453b1
commit 5ea8bba1a1

View File

@ -276,6 +276,10 @@ func (be *beSwift) List(ctx context.Context, t restic.FileType, fn func(restic.F
if err != nil {
return nil, err
}
if ctx.Err() != nil {
return nil, ctx.Err()
}
}
return newObjects, nil
})