Fixed and error message and properly initialized the DB

This commit is contained in:
Mikayla Maki 2022-12-03 16:46:35 -08:00
parent 1ce0863158
commit 55eb0a3742
2 changed files with 7 additions and 4 deletions

View file

@ -168,7 +168,7 @@ impl<M: Migrator> ThreadSafeConnection<M> {
let result = connection.with_write(|connection| callback(connection));
sender.send(result).ok();
}));
reciever.map(|response| response.expect("Background writer thread unexpectedly closed"))
reciever.map(|response| response.expect("Write queue unexpectedly closed"))
}
pub(crate) fn create_connection(