mirror of
https://github.com/restic/restic.git
synced 2025-12-14 02:57:04 +00:00
Add more checks for canceled contexts
This commit is contained in:
@@ -57,6 +57,10 @@ func walk(ctx context.Context, repo restic.BlobLoader, prefix string, parentTree
|
||||
})
|
||||
|
||||
for _, node := range tree.Nodes {
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
p := path.Join(prefix, node.Name)
|
||||
|
||||
if node.Type == "" {
|
||||
|
||||
Reference in New Issue
Block a user