feat: arc client

This commit is contained in:
Per Stark
2025-01-15 08:12:08 +01:00
parent 972919a515
commit 2e70bd0636
2 changed files with 10 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = get_config()?;
let job_queue = JobQueue::new(Arc::new(
let surreal_db_client = Arc::new(
SurrealDbClient::new(
&config.surrealdb_address,
&config.surrealdb_username,
@@ -36,9 +36,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
&config.surrealdb_database,
)
.await?,
));
);
let content_processor = ContentProcessor::new(&config).await?;
let job_queue = JobQueue::new(surreal_db_client.clone());
let content_processor = ContentProcessor::new(surreal_db_client).await?;
loop {
// First, check for any unfinished jobs