Skip to content

Commit

Permalink
fix: disable conversion to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
kha7iq committed May 21, 2023
1 parent 42ff9cf commit 617fd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/from/from.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func transferFile(nfs *nfs.Target, srcfile string, targetfile string) error {
defer wr.Close()

// Copy files with progress size
n, err := io.CopyN(wr, io.TeeReader(t, progress), int64(size))
n, err := io.CopyN(wr, io.TeeReader(t, progress), size)
if err != nil {
log.Fatalf("error copying: n=%d, %s", n, err.Error())
return err
Expand Down

0 comments on commit 617fd47

Please sign in to comment.