From b89aad9360c30c3e0fafa5b98b43029a3ddd2704 Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:40:25 +0000 Subject: [PATCH] feat(backends): Update libsql sleep from 100->10 millis --- geekorm-core/src/backends/libsql.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/geekorm-core/src/backends/libsql.rs b/geekorm-core/src/backends/libsql.rs index f5d2de6..d6b4019 100644 --- a/geekorm-core/src/backends/libsql.rs +++ b/geekorm-core/src/backends/libsql.rs @@ -391,7 +391,7 @@ where match connection.try_lock() { Ok(conn) => return C::create_table::(&conn).await, Err(_) => { - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_millis(10)); } } } @@ -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)); } } } @@ -430,7 +430,7 @@ where match connection.try_lock() { Ok(conn) => return C::query::(&conn, query).await, Err(_) => { - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_millis(10)); } } } @@ -452,7 +452,7 @@ where match connection.try_lock() { Ok(conn) => return C::query_first::(&conn, query).await, Err(_) => { - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_millis(10)); } } } @@ -473,7 +473,7 @@ where match connection.try_lock() { Ok(conn) => return C::execute::(&conn, query).await, Err(_) => { - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_millis(10)); } } }