Mention vault opening

This way, it hopefully doesn't look like the program is hanging whenever
it is launched.
This commit is contained in:
Joscha 2022-06-25 15:01:34 +02:00
parent d44a7faf61
commit 62033ee5bb
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ fn run(mut conn: Connection, mut rx: mpsc::UnboundedReceiver<Request>) {
while let Some(request) = rx.blocking_recv() {
match request {
Request::Close(tx) => {
println!("Optimizing vault");
println!("Closing vault");
let _ = conn.execute_batch("PRAGMA optimize");
// Ensure `Vault::close` exits only after the sqlite connection
// has been closed properly.

View file

@ -1,6 +1,7 @@
use rusqlite::Connection;
pub fn prepare(conn: &mut Connection) -> rusqlite::Result<()> {
println!("Opening vault");
conn.execute_batch(
"
CREATE TEMPORARY TABLE euph_trees (