Changed name and cargo fmt
Rust Build / Test Suite (push) Successful in 35s
Rust Build / Check (push) Successful in 36s
Rust Build / Clippy (push) Successful in 33s
Rust Build / Rustfmt (push) Successful in 37s
Rust Build / build (push) Successful in 25s

This commit is contained in:
2026-05-31 16:48:16 -04:00
parent 775410907b
commit 112b94f59e
4 changed files with 5 additions and 9 deletions
+3 -5
View File
@@ -1,10 +1,9 @@
use sqlx::postgres::PgPoolOptions;
pub async fn create_pool() -> Result<sqlx::PgPool, sqlx::Error> {
let database_url = textsender_models::envy::environment::get_db_url().await.value;
let database_url = textsender_models::envy::environment::get_db_url()
.await
.value;
println!("Database url: {database_url}");
PgPoolOptions::new()
@@ -21,4 +20,3 @@ pub async fn migrations(pool: &sqlx::PgPool) {
.await
.expect("Failed to run migrations");
}
-1
View File
@@ -4,7 +4,6 @@ pub mod hashing;
pub mod repo;
pub mod token_stuff;
#[tokio::main]
async fn main() {
// initialize tracing
-1
View File
@@ -48,4 +48,3 @@ pub async fn get_passphrase(
Err(err) => Err(err),
}
}
+2 -2
View File
@@ -82,9 +82,9 @@ pub fn extract_id_from_token(key: &String, token: &String) -> Result<uuid::Uuid,
}
}
pub const APP_TOKEN_TYPE: &str = "Icarus_App";
pub const APP_TOKEN_TYPE: &str = "Textsender_App";
pub const APP_SUBJECT: &str = "Something random";
pub const SERVICE_TOKEN_TYPE: &str = "Icarus_Service";
pub const SERVICE_TOKEN_TYPE: &str = "Textsender_Service";
pub const SERVICE_SUBJECT: &str = "Service random";
pub fn get_token_type(key: &String, token: &String) -> Result<String, std::io::Error> {