Skip to content
Snippets Groups Projects
Unverified Commit d592323e authored by Richard Huang's avatar Richard Huang
Browse files

minor typo conect -> connect

parent 95dd1cd7
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ fn check_db() { ...@@ -157,7 +157,7 @@ fn check_db() {
// Turn on WAL in SQLite // Turn on WAL in SQLite
if CONFIG.enable_db_wal() { if CONFIG.enable_db_wal() {
use diesel::RunQueryDsl; use diesel::RunQueryDsl;
let connection = db::get_connection().expect("Can't conect to DB"); let connection = db::get_connection().expect("Can't connect to DB");
diesel::sql_query("PRAGMA journal_mode=wal") diesel::sql_query("PRAGMA journal_mode=wal")
.execute(&connection) .execute(&connection)
.expect("Failed to turn on WAL"); .expect("Failed to turn on WAL");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment