1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Remove context timeout in swift storage context

This commit is contained in:
Totalus
2024-01-21 12:33:03 -05:00
parent 0d3ee4186c
commit 90bfd91c50

View File

@@ -24,7 +24,7 @@ type SwiftStorage struct {
}
// CreateSwiftStorage creates an OpenStack Swift storage object. storageURL is in the form of
// `user@authURL/container/path?arg1=value1&arg2=value2``
// `user@authURL/container/path?arg1=value1&arg2=value2`
func CreateSwiftStorage(storageURL string, key string, threads int) (storage *SwiftStorage, err error) {
// This is the map to store all arguments
@@ -108,7 +108,7 @@ func CreateSwiftStorage(storageURL string, key string, threads int) (storage *Sw
arguments["protocol"] = "https"
}
ctx, _ := context.WithTimeout(context.Background(), time.Duration(timeout)*time.Second)
ctx := context.Background()
// Please refer to https://godoc.org/github.com/ncw/swift#Connection
connection := swift.Connection{