fix: apply automatic clippy fixes across workspace
This commit is contained in:
1 parent
73ab5037d8
commit
5da422d23a
12 files changed
+99
-115
No files matched your search
+6
-6
@@ -17,7 +17,7 @@ fn init_logging(app_name: &str) -> Option<tracing_appender::non_blocking::Worker
|
||||
base_dir.push(".gemini/mcp_memory/logs");
|
||||
std::fs::create_dir_all(&base_dir).unwrap_or_default();
|
||||
|
||||
let file_appender = tracing_appender::rolling::daily(base_dir, format!("{}.log", app_name));
|
||||
let file_appender = tracing_appender::rolling::daily(base_dir, format!("{app_name}.log"));
|
||||
let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);
|
||||
|
||||
let _ = tracing_subscriber::fmt()
|
||||
@@ -45,16 +45,16 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let _ = shutdown_tx.send(()).await;
|
||||
});
|
||||
|
||||
let target_url = if cli.target != "http://localhost:3000" {
|
||||
cli.target
|
||||
} else {
|
||||
let target_url = if cli.target == "http://localhost:3000" {
|
||||
let port = std::env::var("MCP_PORT").unwrap_or_else(|_| "3000".to_string());
|
||||
format!("http://127.0.0.1:{}", port)
|
||||
format!("http://127.0.0.1:{port}")
|
||||
} else {
|
||||
cli.target
|
||||
};
|
||||
let ws_url = target_url
|
||||
.replace("http://", "ws://")
|
||||
.replace("https://", "wss://");
|
||||
let ws_url = format!("{}/ws?client=proxy", ws_url);
|
||||
let ws_url = format!("{ws_url}/ws?client=proxy");
|
||||
|
||||
loop {
|
||||
if shutdown_rx.try_recv().is_ok() {
|
||||
|
||||
Reference in new issue
Block a user