Skip to content

Commit

Permalink
Bump up Go version to 1.22, use range over int
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Apr 27, 2024
1 parent da7be36 commit ac996b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hatena/u2s3

go 1.20
go 1.22

require (
github.com/aws/aws-sdk-go v1.51.30
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func SelectUploadFiles(workerNum int, que fetchQueue) chan UploadableFile {
var wg sync.WaitGroup
out := make(chan UploadableFile)

for i := 0; i < workerNum; i++ {
for range workerNum {
wg.Add(1)
go fetch(&wg, que)
}
Expand Down

0 comments on commit ac996b6

Please sign in to comment.