mirror of
https://github.com/restic/restic.git
synced 2025-03-13 13:11:25 +00:00
swift: restore context err check for list()
This commit is contained in:
parent
e7ec0453b1
commit
5ea8bba1a1
@ -276,6 +276,10 @@ func (be *beSwift) List(ctx context.Context, t restic.FileType, fn func(restic.F
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return nil, ctx.Err()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return newObjects, nil
|
return newObjects, nil
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user