From 12c856a10cb9c59ae97504ce0fcd9fdb044bdd14 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 15 Sep 2022 01:36:12 +0800 Subject: Use io.CopyN to utilize zero copy technique. --- recording/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recording/config.go') diff --git a/recording/config.go b/recording/config.go index ff3ae2a..7dbf189 100644 --- a/recording/config.go +++ b/recording/config.go @@ -22,7 +22,7 @@ type TransportConfig struct { type DownloadConfig struct { SaveDirectory string `mapstructure:"save_directory"` - DiskWriteBufferBytes int `mapstructure:"disk_write_buffer_bytes"` + DiskWriteBufferBytes int64 `mapstructure:"disk_write_buffer_bytes"` UseSpecialExtNameBeforeFinishing bool `mapstructure:"use_special_ext_name_when_downloading"` } -- cgit v1.2.3