Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Mar 4, 2024
1 parent 676e2fa commit 5eb69cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metainfo/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (info *Info) writeFiles(w io.Writer, open func(fi FileInfo) (io.ReadCloser,
if err != nil {
return fmt.Errorf("error opening %v: %s", fi, err)
}
wn, err := io.CopyN(w, bufio.NewReaderSize(r, 2*1024*1024), fi.Length)
wn, err := io.CopyN(w, bufio.NewReaderSize(r, 4*1024*1024), fi.Length)
r.Close()
if wn != fi.Length {
return fmt.Errorf("error copying %v: %s", fi, err)
Expand Down

0 comments on commit 5eb69cd

Please sign in to comment.