Move util module to server module
This commit is contained in:
parent
6815c36f5b
commit
7635af88cd
9 changed files with 7 additions and 7 deletions
|
|
@ -2,7 +2,6 @@ mod args;
|
|||
mod config;
|
||||
mod server;
|
||||
mod somehow;
|
||||
mod util;
|
||||
|
||||
use std::{io, path::PathBuf, process};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
mod recurring;
|
||||
mod util;
|
||||
mod web;
|
||||
|
||||
use std::{path::Path, sync::Arc, time::Duration};
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue