aboutsummaryrefslogtreecommitdiff
path: root/src/k2v_util.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 15:28:19 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 15:28:19 +0100
commita65f5b25894faa9802d274beb394f40062c65bae (patch)
tree990e3f3cb1a9d9eb3bbaa62bc16049ef9524d6e6 /src/k2v_util.rs
parent1e192f93d5bf544c82fe91fb799d77e8b5d53afe (diff)
downloadaerogramme-a65f5b25894faa9802d274beb394f40062c65bae.tar.gz
aerogramme-a65f5b25894faa9802d274beb394f40062c65bae.zip
WIP rewrite mail/incoming
Diffstat (limited to 'src/k2v_util.rs')
-rw-r--r--src/k2v_util.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/k2v_util.rs b/src/k2v_util.rs
index 9dadab4..3cd969b 100644
--- a/src/k2v_util.rs
+++ b/src/k2v_util.rs
@@ -1,14 +1,10 @@
+/*
use anyhow::Result;
-
-use k2v_client::{CausalValue, CausalityToken, K2vClient};
-
// ---- UTIL: function to wait for a value to have changed in K2V ----
pub async fn k2v_wait_value_changed(
- k2v: &K2vClient,
- pk: &str,
- sk: &str,
- prev_ct: &Option<CausalityToken>,
+ k2v: &storage::RowStore,
+ key: &storage::RowRef,
) -> Result<CausalValue> {
loop {
if let Some(ct) = prev_ct {
@@ -27,3 +23,4 @@ pub async fn k2v_wait_value_changed(
}
}
}
+*/