optimize easytier-web (#522)

1. use default compress level for tower_http. the best level consume
lots of memory
2. add more help message and command line arg.
This commit is contained in:
Sijie.Sun
2024-12-21 01:27:39 +08:00
committed by GitHub
parent 25ed41caf5
commit 870eca9e9f
6 changed files with 115 additions and 11 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ impl RestfulServer {
.deflate(true)
.gzip(true)
.zstd(true)
.quality(tower_http::compression::CompressionLevel::Best);
.quality(tower_http::compression::CompressionLevel::Default);
let app = Router::new()
.route("/api/v1/summary", get(Self::handle_get_summary))