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
+1 -1
View File
@@ -1,6 +1,5 @@
use crate::{db::Db, error::MyError};
use activitystreams::primitives::XsdAnyUri;
use bb8_postgres::tokio_postgres::types::Json;
use log::{debug, error};
use std::{
collections::{HashMap, HashSet},
@@ -8,6 +7,7 @@ use std::{
time::{Duration, SystemTime},
};
use tokio::sync::RwLock;
use tokio_postgres::types::Json;
use uuid::Uuid;
pub type ListenersCache = Arc<RwLock<HashSet<XsdAnyUri>>>;