From 5ea8bba1a1ef5cd6b98b8a0d4a077056b9a75487 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 24 Sep 2021 21:19:46 +0200 Subject: [PATCH] swift: restore context err check for list() --- internal/backend/swift/swift.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/backend/swift/swift.go b/internal/backend/swift/swift.go index 4d7f50bbc..8d82d90cb 100644 --- a/internal/backend/swift/swift.go +++ b/internal/backend/swift/swift.go @@ -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 })