瀏覽代碼

first commit

yubin.byb 10 年之前
父節點
當前提交
1a2f3b155e
共有 2 個文件被更改,包括 0 次插入4 次删除
  1. 0 2
      oss/download.go
  2. 0 2
      oss/upload.go

+ 0 - 2
oss/download.go

@@ -382,8 +382,6 @@ func (bucket Bucket) downloadFileWithCp(objectKey, filePath string, partSize int
 			dcp.dump(cpFilePath)
 		case err := <-failed:
 			return err
-		default:
-			time.Sleep(time.Second)
 		}
 
 		if completed >= len(parts) {

+ 0 - 2
oss/upload.go

@@ -418,8 +418,6 @@ func (bucket Bucket) uploadFileWithCp(objectKey, filePath string, partSize int64
 			ucp.dump(cpFilePath)
 		case err := <-failed:
 			return err
-		default:
-			time.Sleep(time.Second)
 		}
 
 		if completed >= len(chunks) {