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 tracing::instrument;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
db::{Database, SqliteDatabase},
|
db::{/* Database, */ SqliteDatabase},
|
||||||
secrets::{Password, UserToken},
|
secrets::{Password, UserToken},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Authenticator<DB: Database> {
|
pub struct Authenticator {
|
||||||
db: Arc<Mutex<DB>>,
|
db: Arc<Mutex<SqliteDatabase>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Authenticator<SqliteDatabase> {
|
impl Authenticator {
|
||||||
pub fn new(db: Arc<Mutex<SqliteDatabase>>) -> Self {
|
pub fn new(db: Arc<Mutex<SqliteDatabase>>) -> Self {
|
||||||
Self { db }
|
Self { db }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue