mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user