Skip to content

Commit

Permalink
More dev
Browse files Browse the repository at this point in the history
  • Loading branch information
markfeit committed Dec 4, 2021
1 parent 95b1227 commit 0590daf
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 := 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{
Expand Down

0 comments on commit 0590daf

Please sign in to comment.