From 0590daff8595510f834714c0c2390d339e71479d Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Sat, 4 Dec 2021 10:53:34 -0500 Subject: [PATCH] More dev --- 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 0a92267d..d82aa1dd 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 := context.TODO + ctx, cancel := context.WithDeadline(context.Background(), time.Millisecond) + defer cancel() // Please refer to https://godoc.org/github.com/ncw/swift#Connection connection := swift.Connection{