fix: make generate_status_info public and remove unused imports

Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-11 13:04:19 -03:00
parent ff588b9db2
commit f8c896fa25
3 changed files with 3 additions and 4 deletions

View File

@@ -7,7 +7,6 @@ use clap::Command;
use log::{debug, info, warn};
use std::net::SocketAddr;
use std::path::PathBuf;
use std::str::FromStr;
use std::sync::Arc;
use tokio::sync::Mutex;
use tower_http::cors::CorsLayer;
@@ -22,7 +21,7 @@ mod items;
mod content;
mod docs;
pub use common::{ServerConfig, AppState, ApiResponse, logging_middleware};
pub use common::{ServerConfig, AppState, logging_middleware};
use status::handle_status;
use items::{handle_list_items, handle_get_item, handle_put_item, handle_delete_item};
use content::{handle_get_content_latest, handle_get_content};

View File

@@ -1,6 +1,6 @@
use anyhow::Result;
use axum::http::HeaderMap;
use log::{info, warn};
use log::info;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::path::PathBuf;

View File

@@ -53,7 +53,7 @@ pub struct MetaPluginInfo {
pub args: String,
}
fn generate_status_info(
pub fn generate_status_info(
data_path: PathBuf,
db_path: PathBuf,
enabled_meta_plugins: &Vec<MetaPluginType>,