소스 검색

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) {