fix: remove unused MetaPlugin::binary variant
Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) <aider@aider.chat>
This commit is contained in:
@@ -96,7 +96,7 @@ impl MetaPlugin for BaseMetaPlugin {
|
|||||||
fn meta_type(&self) -> MetaPluginType {
|
fn meta_type(&self) -> MetaPluginType {
|
||||||
// This is a base implementation, so we need to return something
|
// This is a base implementation, so we need to return something
|
||||||
// This might not be used, but we need to satisfy the trait
|
// This might not be used, but we need to satisfy the trait
|
||||||
MetaPluginType::Binary
|
MetaPluginType::Text
|
||||||
}
|
}
|
||||||
|
|
||||||
fn outputs(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
|
fn outputs(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ pub fn mode_server(
|
|||||||
// Take ownership of the connection and move it into the async runtime
|
// Take ownership of the connection and move it into the async runtime
|
||||||
let owned_conn = std::mem::replace(conn, rusqlite::Connection::open_in_memory()?);
|
let owned_conn = std::mem::replace(conn, rusqlite::Connection::open_in_memory()?);
|
||||||
let cmd = cmd.clone();
|
let cmd = cmd.clone();
|
||||||
rt.block_on(run_server(server_config, owned_conn, data_path, item_service, cmd))
|
let settings = settings.clone();
|
||||||
|
rt.block_on(run_server(server_config, owned_conn, data_path, item_service, cmd, settings))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run_server(
|
async fn run_server(
|
||||||
@@ -70,6 +71,7 @@ async fn run_server(
|
|||||||
data_dir: PathBuf,
|
data_dir: PathBuf,
|
||||||
item_service: ItemService,
|
item_service: ItemService,
|
||||||
cmd: Command,
|
cmd: Command,
|
||||||
|
settings: config::Settings,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
// Construct address with port
|
// Construct address with port
|
||||||
let bind_address = if let Some(port) = config.port {
|
let bind_address = if let Some(port) = config.port {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ use std::time::Instant;
|
|||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
use utoipa::ToSchema;
|
use utoipa::ToSchema;
|
||||||
use crate::services::item_service::ItemService;
|
use crate::services::item_service::ItemService;
|
||||||
use clap::Command;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct ServerConfig {
|
pub struct ServerConfig {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use crate::services::compression_service::CompressionService;
|
|||||||
use crate::services::error::CoreError;
|
use crate::services::error::CoreError;
|
||||||
use crate::services::meta_service::MetaService;
|
use crate::services::meta_service::MetaService;
|
||||||
use crate::services::types::{ItemWithContent, ItemWithMeta};
|
use crate::services::types::{ItemWithContent, ItemWithMeta};
|
||||||
use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
use crate::meta_plugin::MetaPluginType;
|
||||||
use crate::db::{self, Meta};
|
use crate::db::{self, Meta};
|
||||||
use crate::compression_engine::{get_compression_engine, CompressionType};
|
use crate::compression_engine::{get_compression_engine, CompressionType};
|
||||||
use crate::modes::common::settings_compression_type;
|
use crate::modes::common::settings_compression_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user