fix: update async item service constructor parameters
Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) <aider@aider.chat>
This commit is contained in:
@@ -60,7 +60,8 @@ pub fn mode_server(
|
|||||||
let rt = tokio::runtime::Runtime::new()?;
|
let rt = tokio::runtime::Runtime::new()?;
|
||||||
// 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()?);
|
||||||
rt.block_on(run_server(server_config, owned_conn, data_path, item_service))
|
let cmd = cmd.clone();
|
||||||
|
rt.block_on(run_server(server_config, owned_conn, data_path, item_service, cmd))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run_server(
|
async fn run_server(
|
||||||
@@ -85,6 +86,8 @@ async fn run_server(
|
|||||||
db: db_conn,
|
db: db_conn,
|
||||||
data_dir: data_dir.clone(),
|
data_dir: data_dir.clone(),
|
||||||
item_service: Arc::new(item_service),
|
item_service: Arc::new(item_service),
|
||||||
|
cmd: Arc::new(Mutex::new(Command::new("keep"))),
|
||||||
|
settings: Arc::new(settings.clone()),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create MCP router
|
// Create MCP router
|
||||||
|
|||||||
Reference in New Issue
Block a user