fmt
Some checks failed
CI / Check / Test / Build (push) Has been cancelled

This commit is contained in:
2026-05-13 23:38:57 +02:00
parent 7415b91e23
commit 19171806b9
142 changed files with 4140 additions and 2025 deletions

View File

@@ -13,12 +13,18 @@ use domain::{
/// Enrichment will later overwrite this with the full document (cast, genres, etc.).
pub struct MovieDiscoveryIndexer {
movie_repository: Arc<dyn MovieRepository>,
search_command: Arc<dyn SearchCommand>,
search_command: Arc<dyn SearchCommand>,
}
impl MovieDiscoveryIndexer {
pub fn new(movie_repository: Arc<dyn MovieRepository>, search_command: Arc<dyn SearchCommand>) -> Self {
Self { movie_repository, search_command }
pub fn new(
movie_repository: Arc<dyn MovieRepository>,
search_command: Arc<dyn SearchCommand>,
) -> Self {
Self {
movie_repository,
search_command,
}
}
}
@@ -35,7 +41,8 @@ impl EventHandler for MovieDiscoveryIndexer {
return Ok(());
};
if let Err(e) = self.search_command
if let Err(e) = self
.search_command
.index(IndexableDocument::Movie {
id: movie_id.clone(),
movie: Box::new(movie),