Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/examples/indexing_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::path::PathBuf;
use tokio::time::{sleep, Duration};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Initialize logging with more detail
tracing_subscriber::fmt()
.with_env_filter("sd_core=debug,desktop_indexing_demo=info")
Expand Down
2 changes: 1 addition & 1 deletion core/examples/job_logging_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::path::PathBuf;
use tokio::time::{sleep, Duration};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Initialize logging
tracing_subscriber::fmt()
.with_env_filter("sd_core=debug")
Expand Down
5 changes: 3 additions & 2 deletions core/examples/library_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::path::PathBuf;
use uuid::Uuid;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Initialize logging
tracing_subscriber::fmt()
.with_env_filter("sd_core=debug")
Expand Down Expand Up @@ -125,7 +125,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
accessed_at: Set(None),
indexed_at: Set(None),
permissions: Set(None),
device_id: Set(Some(inserted_device.id)),
volume_id: Set(None),
inode: Set(None),
};
let entry_record = entry.insert(db.conn()).await?;
Expand All @@ -135,6 +135,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
id: NotSet,
uuid: Set(Uuid::new_v4()),
device_id: Set(inserted_device.id),
volume_id: Set(None),
entry_id: Set(Some(entry_record.id)),
name: Set(Some("Current Directory".to_string())),
index_mode: Set("shallow".to_string()),
Expand Down
2 changes: 1 addition & 1 deletion core/examples/shutdown_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::time::Duration;
use tokio::time::sleep;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Initialize logging
tracing_subscriber::fmt::init();

Expand Down
10 changes: 5 additions & 5 deletions core/tests/event_system_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use tokio::sync::Mutex;
use tokio::time::{timeout, Duration};

#[tokio::test]
async fn test_core_and_library_events() -> Result<(), Box<dyn std::error::Error>> {
async fn test_core_and_library_events() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let temp_dir = TempDir::new()?;

// Set up event collection
Expand Down Expand Up @@ -122,7 +122,7 @@ async fn test_core_and_library_events() -> Result<(), Box<dyn std::error::Error>
}

#[tokio::test]
async fn test_location_and_job_events() -> Result<(), Box<dyn std::error::Error>> {
async fn test_location_and_job_events() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let temp_dir = TempDir::new()?;
let core = Core::new(temp_dir.path().to_path_buf()).await?;

Expand Down Expand Up @@ -241,7 +241,7 @@ async fn test_location_and_job_events() -> Result<(), Box<dyn std::error::Error>
}

#[tokio::test]
async fn test_event_filtering() -> Result<(), Box<dyn std::error::Error>> {
async fn test_event_filtering() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let temp_dir = TempDir::new()?;
let core = Core::new(temp_dir.path().to_path_buf()).await?;

Expand Down Expand Up @@ -308,7 +308,7 @@ async fn test_event_filtering() -> Result<(), Box<dyn std::error::Error>> {
}

#[tokio::test]
async fn test_concurrent_event_subscribers() -> Result<(), Box<dyn std::error::Error>> {
async fn test_concurrent_event_subscribers() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
Comment thread
StarbirdTech marked this conversation as resolved.
Outdated
let temp_dir = TempDir::new()?;
let core = Core::new(temp_dir.path().to_path_buf()).await?;

Expand Down Expand Up @@ -391,7 +391,7 @@ async fn test_concurrent_event_subscribers() -> Result<(), Box<dyn std::error::E
}

#[tokio::test]
async fn test_custom_events() -> Result<(), Box<dyn std::error::Error>> {
async fn test_custom_events() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let temp_dir = TempDir::new()?;
let core = Core::new(temp_dir.path().to_path_buf()).await?;

Expand Down
1 change: 0 additions & 1 deletion core/tests/job_registration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use sd_core::{
infra::job::{prelude::*, registry::REGISTRY},
ops::files::copy::job::FileCopyJob,
};
use uuid::Uuid;

#[tokio::test]
async fn test_job_registration() {
Expand Down
2 changes: 1 addition & 1 deletion core/tests/phase_snapshot_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::{sync::Arc, time::Duration};
use tempfile::TempDir;

#[tokio::test]
async fn capture_phase_snapshots() -> Result<(), Box<dyn std::error::Error>> {
async fn capture_phase_snapshots() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
tracing_subscriber::fmt::init();
eprintln!("\nPHASE SNAPSHOT TEST - Indexing Desktop\n");
eprintln!("{}", "=".repeat(80));
Expand Down