Skip to content

Commit

Permalink
More development
Browse files Browse the repository at this point in the history
  • Loading branch information
markfeit committed Dec 4, 2021
1 parent 0590daf commit 590d3b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/duplicacy_swiftstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 590d3b1

Please sign in to comment.