fix: remove unused imports and resolve config module conflicts
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -2,7 +2,7 @@ use anyhow::Result;
|
||||
use axum::{
|
||||
Router,
|
||||
};
|
||||
use clap::Command;
|
||||
use clap::{Command, Parser};
|
||||
use log::{debug, info, warn};
|
||||
use std::net::SocketAddr;
|
||||
use std::path::PathBuf;
|
||||
@@ -11,6 +11,7 @@ use tokio::sync::Mutex;
|
||||
use tower_http::cors::CorsLayer;
|
||||
use tower::ServiceBuilder;
|
||||
use tower_http::trace::TraceLayer;
|
||||
use crate::config;
|
||||
|
||||
pub mod common;
|
||||
mod api;
|
||||
@@ -20,8 +21,8 @@ pub use common::{ServerConfig, AppState, logging_middleware, create_auth_middlew
|
||||
|
||||
pub fn mode_server(
|
||||
_cmd: &mut Command,
|
||||
settings: &crate::config::Settings,
|
||||
config: &crate::config::Config,
|
||||
settings: &config::Settings,
|
||||
config: &config::Config,
|
||||
conn: &mut rusqlite::Connection,
|
||||
data_path: PathBuf,
|
||||
) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user