Skip to content

Commit

Permalink
fix upload file
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Oct 13, 2022
1 parent 6ea3cdb commit 46a37f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func SpliceFiles(dir, path string, length int, startPoint int) error {

// todo: here should have a goroutine to remove each partial file after it is read, to save disk space

for i := 0; i < length+startPoint; i++ {
for i := 0; i < length+startPoint-1; i++ {
data, err := ioutil.ReadFile(dir + "/" + strconv.Itoa(i+startPoint))
if err != nil {
return err
Expand Down

0 comments on commit 46a37f0

Please sign in to comment.