cargo fmt: format all Rust source files
All checks were successful
CI — P1 Route (Rust) / test (push) Successful in 6m35s

This commit is contained in:
2026-03-01 17:53:28 +00:00
parent 00db59ff83
commit a8a8c53917
12 changed files with 305 additions and 167 deletions

View File

@@ -1,5 +1,5 @@
use axum::http::HeaderMap;
use async_trait::async_trait;
use axum::http::HeaderMap;
use thiserror::Error;
#[derive(Debug, Clone)]
@@ -40,7 +40,11 @@ pub struct LocalAuthProvider {
impl LocalAuthProvider {
pub fn new(pool: sqlx::PgPool, jwt_secret: String, redis: deadpool_redis::Pool) -> Self {
Self { pool, _jwt_secret: jwt_secret, redis }
Self {
pool,
_jwt_secret: jwt_secret,
redis,
}
}
}
@@ -72,7 +76,7 @@ impl AuthProvider for LocalAuthProvider {
// 2. Fall back to PostgreSQL
let row = sqlx::query_as::<_, (String, String)>(
"SELECT org_id, key_hash FROM api_keys WHERE key_prefix = $1 AND revoked_at IS NULL"
"SELECT org_id, key_hash FROM api_keys WHERE key_prefix = $1 AND revoked_at IS NULL",
)
.bind(&key[..8])
.fetch_optional(&self.pool)