Rename db to util and use OffsetDateTime with sqlx

This commit is contained in:
Joscha 2023-08-06 17:38:49 +02:00
parent 6fcd073738
commit 553a56bb12
7 changed files with 46 additions and 28 deletions

View file

@ -1,8 +1,8 @@
mod config;
mod db;
mod recurring;
mod somehow;
mod state;
mod util;
mod web;
use std::{io, path::PathBuf, process};
@ -130,7 +130,7 @@ async fn run() -> somehow::Result<()> {
// running. Maybe this is due to the thread pool not deferring blocking
// work to a separate thread? In any case, replacing it with a sleep
// doesn't block the signals.
//
//
// In order to fix this, I could maybe register a bare signal handler
// (instead of using tokio streams) that just calls process::exit(1) and
// nothing else?