diff --git a/src-tauri/src/lib/record_store/app_store.rs b/src-tauri/src/lib/record_store/app_store.rs index d90fa3ba..9e50c49f 100644 --- a/src-tauri/src/lib/record_store/app_store.rs +++ b/src-tauri/src/lib/record_store/app_store.rs @@ -1,5 +1,5 @@ use crate::lib::{types::ParsedKafkaRecord, Error, Result}; -use parking_lot::{lock_api::Mutex, FairMutex}; +use parking_lot::{FairMutex}; use rusqlite::{named_params, Connection}; use std::sync::Arc; @@ -10,7 +10,7 @@ pub struct AppStore { impl AppStore { pub fn new() -> Self { AppStore { - conn: Arc::new(Mutex::new( + conn: Arc::new(FairMutex::new( Connection::open_in_memory().expect("Unable to initialize the in memory sqlite DB"), )), }