Skip to content

Commit

Permalink
chore: optimize memory allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Ruocco <[email protected]>
  • Loading branch information
armru authored and mnencia committed Feb 1, 2024
1 parent 33c27ee commit d64efd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fileutils/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func copyFileContents(src, dst string) error {
}()

// Copy the contents of the source file into the destination files
size := 1024 * 1024
const size = 1024 * 1024
buf := make([]byte, size)
if _, err = io.CopyBuffer(dstFile, srcFile, buf); err != nil {
return err
Expand Down

0 comments on commit d64efd8

Please sign in to comment.