hive-agent: run the event store in WAL and give turn-stats writes a busy timeout
This commit is contained in:
parent
161dd8c44b
commit
62ab45297c
6 changed files with 110 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue