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:
@@ -24,7 +24,7 @@ type SwiftStorage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateSwiftStorage creates an OpenStack Swift storage object. storageURL is in the form of
|
// 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) {
|
func CreateSwiftStorage(storageURL string, key string, threads int) (storage *SwiftStorage, err error) {
|
||||||
|
|
||||||
// This is the map to store all arguments
|
// 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"
|
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
|
// Please refer to https://godoc.org/github.com/ncw/swift#Connection
|
||||||
connection := swift.Connection{
|
connection := swift.Connection{
|
||||||
|
|||||||
Reference in New Issue
Block a user