Skip to content

Commit

Permalink
fixup! better concurrency for dump-file
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Dec 24, 2022
1 parent 8e14fbf commit 8c65c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cronosd/cmd/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func DumpFileChangeSetCmd() *cobra.Command {
end = endVersion
}
var tasks []*dumpTask
for _, work := range splitWorkLoad(concurrency, Range{Start: startVersion, End: endVersion}) {
for _, work := range splitWorkLoad(concurrency, Range{Start: i, End: end}) {
task := newDumpTask(work)
tasksChan <- task
tasks = append(tasks, task)
Expand Down

0 comments on commit 8c65c55

Please sign in to comment.