1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Full cleanup of s3 client for mc

This commit is contained in:
Harshavardhana
2015-05-01 15:52:08 -07:00
parent 28315e7492
commit 78a78c072a
23 changed files with 1008 additions and 875 deletions

View File

@@ -89,12 +89,12 @@ func doMakeBucketCmd(methods clientMethods, targetURL string, targetConfig *host
// doMakeBucket - wrapper around PutBucket() API
func doMakeBucket(clnt client.Client, targetURL string) (string, error) {
err := clnt.PutBucket("")
err := clnt.PutBucket()
for i := 0; i < globalMaxRetryFlag && err != nil && isValidRetry(err); i++ {
fmt.Println(console.Retry("Retrying ... %d", i))
// Progressively longer delays
time.Sleep(time.Duration(i*i) * time.Second)
err = clnt.PutBucket("")
err = clnt.PutBucket()
}
if err != nil {
err := iodine.New(err, nil)