Move util module to server module

This commit is contained in:
Joscha 2023-08-07 14:51:26 +02:00
parent 6815c36f5b
commit 7635af88cd
9 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,6 @@ mod args;
mod config;
mod server;
mod somehow;
mod util;
use std::{io, path::PathBuf, process};

View file

@ -1,4 +1,5 @@
mod recurring;
mod util;
mod web;
use std::{path::Path, sync::Arc, time::Duration};

View file

@ -2,7 +2,7 @@ use sqlx::{Acquire, SqlitePool};
use time::OffsetDateTime;
use tracing::debug;
use crate::{somehow, util};
use crate::{server::util, somehow};
pub async fn update(db: &SqlitePool) -> somehow::Result<()> {
debug!("Updating queue");

View file

@ -9,7 +9,7 @@ use gix::{
use sqlx::{Acquire, SqliteConnection, SqlitePool};
use tracing::{debug, info};
use crate::{somehow, util};
use crate::{server::util, somehow};
async fn get_all_commit_hashes_from_db(
conn: &mut SqliteConnection,

View file

@ -7,7 +7,7 @@ use axum::{
use futures::TryStreamExt;
use sqlx::SqlitePool;
use crate::{config::Config, somehow, util};
use crate::{config::Config, server::util, somehow};
use super::{Base, Tab};

View file

@ -3,7 +3,7 @@ use axum::{extract::State, response::IntoResponse};
use futures::TryStreamExt;
use sqlx::SqlitePool;
use crate::{config::Config, somehow, util};
use crate::{config::Config, server::util, somehow};
use super::{Base, Tab};

View file

@ -3,7 +3,7 @@ use axum::{extract::State, response::IntoResponse};
use futures::TryStreamExt;
use sqlx::SqlitePool;
use crate::{config::Config, somehow, util};
use crate::{config::Config, server::util, somehow};
use super::{Base, Tab};

View file

@ -6,7 +6,7 @@ use axum::{
};
use sqlx::SqlitePool;
use crate::{config::Config, somehow, util};
use crate::{config::Config, server::util, somehow};
use super::{Base, Tab};