diff --git a/atuin-client/src/kv.rs b/atuin-client/src/kv.rs
index 8714927..35e8852 100644
--- a/atuin-client/src/kv.rs
+++ b/atuin-client/src/kv.rs
@@ -9,6 +9,7 @@ const KV_TAG: &str = "kv";
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct KvRecord {
+ pub namespace: String,
pub key: String,
pub value: String,
}
@@ -38,12 +39,14 @@ impl KvStore {
pub async fn set(
&self,
store: &mut (impl Store + Send + Sync),
+ namespace: &str,
key: &str,
value: &str,
) -> Result<()> {
let host_id = Settings::host_id().expect("failed to get host_id");
let record = KvRecord {
+ namespace: namespace.to_string(),
key: key.to_string(),
value: value.to_string(),
};
@@ -70,7 +73,12 @@ impl KvStore {
// TODO: setup an actual kv store, rebuild func, and do not pass the main store in here as
// well.
- pub async fn get(&self, store: &impl Store, key: &str) -> Result