Log spans, track size & undownloadable files

This commit is contained in:
2021-07-11 22:49:29 -04:00
parent 792e78391c
commit b609e7059a
10 changed files with 104 additions and 47 deletions

View File

@@ -17,7 +17,7 @@ pub struct Mod {
}
#[instrument(level = "debug", skip(pool))]
pub async fn get_mod_by_nexus_mod_id(
pub async fn get_by_nexus_mod_id(
pool: &sqlx::Pool<sqlx::Postgres>,
nexus_mod_id: i32,
) -> Result<Option<Mod>> {
@@ -32,7 +32,7 @@ pub async fn get_mod_by_nexus_mod_id(
}
#[instrument(level = "debug", skip(pool))]
pub async fn insert_mod(
pub async fn insert(
pool: &sqlx::Pool<sqlx::Postgres>,
name: &str,
nexus_mod_id: i32,