make Authenticator non-generic
This commit is contained in:
parent
399ed56b74
commit
d195147f35
1 changed files with 4 additions and 4 deletions
|
@ -4,16 +4,16 @@ use tokio::sync::Mutex;
|
|||
use tracing::instrument;
|
||||
|
||||
use crate::{
|
||||
db::{Database, SqliteDatabase},
|
||||
db::{/* Database, */ SqliteDatabase},
|
||||
secrets::{Password, UserToken},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Authenticator<DB: Database> {
|
||||
db: Arc<Mutex<DB>>,
|
||||
pub struct Authenticator {
|
||||
db: Arc<Mutex<SqliteDatabase>>,
|
||||
}
|
||||
|
||||
impl Authenticator<SqliteDatabase> {
|
||||
impl Authenticator {
|
||||
pub fn new(db: Arc<Mutex<SqliteDatabase>>) -> Self {
|
||||
Self { db }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue