style: import ordering + blank lines after now_unix sweep (treefmt)

This commit is contained in:
müde 2026-07-06 22:08:40 +02:00
commit dc6a37b29a
14 changed files with 10 additions and 26 deletions

View file

@ -13,10 +13,10 @@ use std::sync::atomic::{AtomicBool, AtomicI64, AtomicU64, Ordering};
use std::sync::{Arc, Mutex};
use hive_claude::TokenUsage;
use hive_sh4re::wire_time::now_unix;
use rusqlite::{Connection, params};
use serde::{Deserialize, Serialize};
use tokio::sync::broadcast;
use hive_sh4re::wire_time::now_unix;
const CHANNEL_CAPACITY: usize = 256;
/// Max `LiveEvent`s the `Bus` returns from `history()` and keeps in
@ -214,7 +214,6 @@ pub fn write_forge_cursor<S: std::hash::BuildHasher>(
write_harness_json(&v);
}
const SCHEMA: &str = "
CREATE TABLE IF NOT EXISTS events (
id INTEGER PRIMARY KEY AUTOINCREMENT,

View file

@ -568,7 +568,6 @@ fn u64_from_i64(v: i64) -> u64 {
u64::try_from(v).unwrap_or(0)
}
#[cfg(test)]
mod tests {
use super::*;

View file

@ -17,8 +17,8 @@
use std::path::Path;
use std::time::Duration;
use rusqlite::{Connection, Result, params};
use hive_sh4re::wire_time::now_unix;
use rusqlite::{Connection, Result, params};
/// How often the sweep runs.
const VACUUM_INTERVAL: Duration = Duration::from_hours(1);
@ -131,4 +131,3 @@ fn vacuum_events(path: &Path) -> Result<u64> {
)?;
Ok(u64::try_from(removed).unwrap_or(0))
}