diff options
-rw-r--r-- | src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs index c67eed774594..e08553302837 100644 --- a/src/db.rs +++ b/src/db.rs @@ -61,7 +61,7 @@ impl Handler<GetThread> for DbExecutor { fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; use schema::posts::dsl::id; - + let conn = self.0.get()?; let thread_result: Thread = threads .find(msg.0).first(&conn)?; |