Skip to content

Commit

Permalink
Update upload.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakura-Byte committed Feb 1, 2025
1 parent b3f2684 commit c92cd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/115/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func (f *Fs) tryHashUpload(
// partial-block check
fs.Debugf(o, "tryHashUpload: 秒传 partial-block check => signCheck=%q", ui.SignCheck)
signKey = ui.SignKey
if signVal, err = calcBlockSHA1(ctx, in, src, ui.SignCheck); err != nil {
if signVal, err = calcBlockSHA1(ctx, newIn, src, ui.SignCheck); err != nil {
return false, nil, newIn, cleanup, fmt.Errorf("calcBlockSHA1 error: %w", err)
}
ui, err = f.initUpload(ctx, size, leaf, dirID, hashStr, signKey, signVal)
Expand Down

0 comments on commit c92cd96

Please sign in to comment.