Skip to content

Commit

Permalink
feat(backends): Update libsql sleep from 100->10 millis
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekMasher authored Jan 9, 2025
1 parent a33e912 commit b89aad9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geekorm-core/src/backends/libsql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ where
match connection.try_lock() {
Ok(conn) => return C::create_table::<T>(&conn).await,
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(100));
std::thread::sleep(std::time::Duration::from_millis(10));
}
}
}
Expand All @@ -409,7 +409,7 @@ where
match connection.try_lock() {
Ok(conn) => return C::row_count(&conn, query).await,
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(100));
std::thread::sleep(std::time::Duration::from_millis(10));
}
}
}
Expand All @@ -430,7 +430,7 @@ where
match connection.try_lock() {
Ok(conn) => return C::query::<T>(&conn, query).await,
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(100));
std::thread::sleep(std::time::Duration::from_millis(10));
}
}
}
Expand All @@ -452,7 +452,7 @@ where
match connection.try_lock() {
Ok(conn) => return C::query_first::<T>(&conn, query).await,
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(100));
std::thread::sleep(std::time::Duration::from_millis(10));
}
}
}
Expand All @@ -473,7 +473,7 @@ where
match connection.try_lock() {
Ok(conn) => return C::execute::<T>(&conn, query).await,
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(100));
std::thread::sleep(std::time::Duration::from_millis(10));
}
}
}
Expand Down

0 comments on commit b89aad9

Please sign in to comment.