increase copy buffer size

This commit is contained in:
Gokcehan committed 2019-03-01 04:01:33 +03:00
1 parent f44ec4f5bd
commit 99734c7dcf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ func copySize(srcs []string) (int64, error) {
}
func copyFile(src, dst string, info os.FileInfo, nums chan int64) error {
buf := make([]byte, 1024)
buf := make([]byte, 4096)
r, err := os.Open(src)
if err != nil {