mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-06 22:51:21 +08:00
fix: correct default chunk size
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
threads = 4 # 下载线程数
|
threads = 4 # 下载线程数
|
||||||
workers = 4 # 同时下载文件数
|
workers = 4 # 同时下载文件数
|
||||||
|
|
||||||
[telegram]
|
[telegram]
|
||||||
token = "" # Bot Token
|
token = "" # Bot Token
|
||||||
admins = [777000] # 你的 user_id
|
admins = [777000] # 你的 user_id
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ func Init() {
|
|||||||
|
|
||||||
viper.SetDefault("threads", 3)
|
viper.SetDefault("threads", 3)
|
||||||
viper.SetDefault("workers", 3)
|
viper.SetDefault("workers", 3)
|
||||||
viper.SetDefault("chunk_size", 50*1024*1024)
|
viper.SetDefault("chunk_size", 1024*1024)
|
||||||
|
|
||||||
viper.SetDefault("temp.base_path", "cache/")
|
viper.SetDefault("temp.base_path", "cache/")
|
||||||
viper.SetDefault("temp.cache_ttl", 3600)
|
viper.SetDefault("temp.cache_ttl", 3600)
|
||||||
|
|||||||
Reference in New Issue
Block a user