Skip to content

Commit

Permalink
update multicopy retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoliang committed Sep 2, 2022
1 parent 8a39be1 commit 6f08b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
// Version current go sdk version
Version = "0.7.38"
Version = "0.7.39"
UserAgent = "cos-go-sdk-v5/" + Version
contentTypeXML = "application/xml"
defaultServiceBaseURL = "http://service.cos.myqcloud.com"
Expand Down
2 changes: 1 addition & 1 deletion object_part.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func copyworker(ctx context.Context, s *ObjectService, jobs <-chan *CopyJobs, re
results <- &copyres
break
}
if resp != nil && resp.StatusCode < 499 {
if resp != nil && resp.StatusCode < 499 && resp.StatusCode != 200 {
results <- &copyres
break
}
Expand Down

0 comments on commit 6f08b8b

Please sign in to comment.