Skip to content

Commit 35388a3

Browse files
committed
incus/file/pull: Actually make read buffer 1MiB
Signed-off-by: Stéphane Graber <[email protected]>
1 parent f2ef7aa commit 35388a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/incus/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func (c *cmdFilePull) Run(cmd *cobra.Command, args []string) error {
688688
} else {
689689
for {
690690
// Read 1MB at a time.
691-
_, err = io.CopyN(writer, src, 1024*1024*1024)
691+
_, err = io.CopyN(writer, src, 1024*1024)
692692
if err != nil {
693693
if err == io.EOF {
694694
break

0 commit comments

Comments
 (0)