添加一些有意思的东西(

This commit is contained in:
shenjack-5600u 2024-01-29 22:37:05 +08:00
parent e0eb286ae5
commit a7142df249
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F
3 changed files with 20 additions and 1 deletions

View File

@ -7,7 +7,8 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
default = ["local_test"]
local_test = []
# db_log = ["db_logger"]
[dependencies]

17
pie.md Normal file
View File

@ -0,0 +1,17 @@
# 画大饼
## 动态负载
1. 根据整体网络带宽负载去决定是否采用多线程下载,以及线程的数量
2. 根据当前运行程序的设备的系统负载网络内存CPU 占用等)来决定服务器的负载
这里主要是通过去调用 API 设定网络带宽(也许可以实现,这个具体得问 bang还有限制服务器最大服务线程数量来决定的
(可以通过 UA 判定辅助处理)
## Dashboard
就…… 状态面板
顺便统计统计 UA 之类的

View File

@ -127,6 +127,7 @@ mod tests {
)
}
#[cfg(feature = "local_test")]
#[tokio::test]
async fn test_get_file_list() {
crate::log::init_log_with_cli();