diff --git a/config.example.toml b/config.example.toml index 6599ffe..fa47527 100644 --- a/config.example.toml +++ b/config.example.toml @@ -1,6 +1,5 @@ threads = 4 # 下载线程数 workers = 4 # 同时下载文件数 - [telegram] token = "" # Bot Token admins = [777000] # 你的 user_id diff --git a/config/viper.go b/config/viper.go index e37cf3a..93f0a22 100644 --- a/config/viper.go +++ b/config/viper.go @@ -78,7 +78,7 @@ func Init() { viper.SetDefault("threads", 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.cache_ttl", 3600)