From 590d3b1b5b82cf82987c4b0d17a18fa41d960a43 Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Sat, 4 Dec 2021 10:56:47 -0500 Subject: [PATCH] More development --- src/duplicacy_swiftstorage.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/duplicacy_swiftstorage.go b/src/duplicacy_swiftstorage.go index d82aa1d..8ed7947 100644 --- a/src/duplicacy_swiftstorage.go +++ b/src/duplicacy_swiftstorage.go @@ -108,7 +108,8 @@ func CreateSwiftStorage(storageURL string, key string, threads int) (storage *Sw arguments["protocol"] = "https" } - ctx, cancel := context.WithDeadline(context.Background(), time.Millisecond) + // This context ends up expired, which is fine. + ctx, cancel := context.WithDeadline(context.Background(), time.Now()) defer cancel() // Please refer to https://godoc.org/github.com/ncw/swift#Connection