diff --git a/crates/agent/src/lib.rs b/crates/agent/src/lib.rs index b941b60..feedad6 100644 --- a/crates/agent/src/lib.rs +++ b/crates/agent/src/lib.rs @@ -1,4 +1,6 @@ pub struct SharedResources { #[cfg(feature = "web")] web: web::Web, + #[cfg(feature = "events")] + events: events::Bus, } diff --git a/crates/database/src/lib.rs b/crates/database/src/lib.rs index c5ea075..1d1a6e5 100644 --- a/crates/database/src/lib.rs +++ b/crates/database/src/lib.rs @@ -28,7 +28,7 @@ pub trait DatabaseUrl { pub async fn run_migration( opts: &impl DatabaseUrl, ) { - let connection = sea_orm::Database::connect(opts.database_url()) + let _connection = db_connect(&opts.database_url()) .await .expect("Failed to connect to database"); // Migrator ::default().up(&connection)