diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-18 01:27:47 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-18 12:17:46 -0400 |
| commit | cce6662d635bb2115f9f2a7bab92cc105166e761 (patch) | |
| tree | 9d1edfea364a3b72cf40c78d67ce05e3e68c84df /src/app.rs | |
| parent | 921f38a73e5d58a5a6077477a8b52d2705798f55 (diff) | |
App methods now return errors that allow not-found cases to be distinguished.
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,7 +1,5 @@ use sqlx::sqlite::SqlitePool; -use crate::error::BoxedError; - use crate::{ channel::app::{Broadcaster, Channels}, index::app::Index, @@ -15,7 +13,7 @@ pub struct App { } impl App { - pub async fn from(db: SqlitePool) -> Result<Self, BoxedError> { + pub async fn from(db: SqlitePool) -> Result<Self, sqlx::Error> { let broadcaster = Broadcaster::from_database(&db).await?; Ok(Self { db, broadcaster }) } |
