This commit is contained in:
2025-11-08 15:24:48 +08:00
parent e28e885e66
commit fa139208a2
3 changed files with 10 additions and 15 deletions

View File

@@ -19,12 +19,12 @@ impl warp::reject::Reject for CertificateError {}
#[derive(Clone)]
pub(crate) struct AppState {
config: Config,
db: sqlx::PgPool,
db: sqlx::MySqlPool,
jwt_secret: String,
}
impl AppState {
pub fn new(config: Config, db: sqlx::PgPool, jwt_secret: String) -> Self {
pub fn new(config: Config, db: sqlx::MySqlPool, jwt_secret: String) -> Self {
Self {
config,
db,