fix: resolve module import conflicts and enum variant errors in API modules
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -2,7 +2,6 @@ use axum::{
|
||||
extract::{ConnectInfo, State},
|
||||
http::{HeaderMap, StatusCode},
|
||||
response::Json,
|
||||
http::header,
|
||||
};
|
||||
use log::warn;
|
||||
use serde_json::json;
|
||||
@@ -46,9 +45,8 @@ pub async fn handle_status(
|
||||
// Add compression engines
|
||||
let compression_engines: Vec<String> = [
|
||||
CompressionType::GZip,
|
||||
CompressionType::Lz4,
|
||||
CompressionType::LZ4,
|
||||
CompressionType::None,
|
||||
CompressionType::Program("test".to_string())
|
||||
]
|
||||
.iter()
|
||||
.map(|ct| ct.to_string())
|
||||
@@ -85,9 +83,6 @@ pub async fn handle_status(
|
||||
MetaPluginType::KeepPid,
|
||||
MetaPluginType::Hostname,
|
||||
MetaPluginType::FullHostname,
|
||||
MetaPluginType::Sha256,
|
||||
MetaPluginType::ReadTime,
|
||||
MetaPluginType::ReadRate,
|
||||
]
|
||||
.iter()
|
||||
.map(|mpt| mpt.to_string())
|
||||
|
||||
Reference in New Issue
Block a user