添加一些有意思的东西(
This commit is contained in:
parent
e0eb286ae5
commit
a7142df249
@ -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
17
pie.md
Normal file
@ -0,0 +1,17 @@
|
||||
# 画大饼
|
||||
|
||||
## 动态负载
|
||||
|
||||
1. 根据整体网络带宽负载去决定是否采用多线程下载,以及线程的数量
|
||||
|
||||
2. 根据当前运行程序的设备的系统负载(网络,内存,CPU 占用等)来决定服务器的负载
|
||||
|
||||
这里主要是通过去调用 API 设定网络带宽(也许可以实现,这个具体得问 bang),还有限制服务器最大服务线程数量来决定的
|
||||
|
||||
(可以通过 UA 判定辅助处理)
|
||||
|
||||
## Dashboard
|
||||
|
||||
就…… 状态面板
|
||||
|
||||
顺便统计统计 UA 之类的
|
@ -127,6 +127,7 @@ mod tests {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(feature = "local_test")]
|
||||
#[tokio::test]
|
||||
async fn test_get_file_list() {
|
||||
crate::log::init_log_with_cli();
|
||||
|
Loading…
Reference in New Issue
Block a user