Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: run the event store in WAL and give turn-stats writes a busy timeout

This commit is contained in:
damocles 2026-10-18 01:36:41 +02:00
commit 62ab45297c
6 changed files with 110 additions and 0 deletions

View file

@ -150,6 +150,7 @@ impl EventStore {
let _ = std::fs::create_dir_all(parent);
}
let conn = Connection::open(path)?;
crate::sqlite_writer::configure_wal(&conn)?;
conn.execute_batch(SCHEMA)?;
Ok(Self {
conn: Mutex::new(conn),