diff --git a/plume-models/src/search/actor.rs b/plume-models/src/search/actor.rs index 49852a95..b8724f2b 100644 --- a/plume-models/src/search/actor.rs +++ b/plume-models/src/search/actor.rs @@ -42,9 +42,9 @@ impl Actor for SearchActor { PostPublished(post) => { let conn = self.conn.get(); match conn { - Ok(_) => { + Ok(conn) => { self.searcher - .add_document(&conn.unwrap(), &post) + .add_document(&conn, &post) .unwrap_or_else(|e| error!("{:?}", e)); } _ => {