Clean db code, switch to deadpool

This commit is contained in:
asonix
2020-04-21 12:07:39 -05:00
parent 4d07476fe7
commit 82e8042c66
9 changed files with 149 additions and 163 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
use crate::{db::Db, error::MyError};
use background_jobs_core::{JobInfo, Stats};
use bb8_postgres::tokio_postgres::types::Json;
use background_jobs::{dev::JobInfo, Stats};
use log::debug;
use tokio_postgres::types::Json;
use uuid::Uuid;
#[derive(Clone)]
@@ -16,7 +16,7 @@ impl Storage {
}
#[async_trait::async_trait]
impl background_jobs_core::Storage for Storage {
impl background_jobs::dev::Storage for Storage {
type Error = MyError;
async fn generate_id(&self) -> Result<Uuid, MyError> {