fixes
This commit is contained in:
parent
dbd9d87434
commit
b2dd3bf9b7
@ -143,7 +143,7 @@ impl ProtectedStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "trace", skip(self, value), ret, err)]
|
#[instrument(level = "trace", skip(self, value))]
|
||||||
pub async fn save_user_secret_cbor<T>(&self, key: &str, value: &T) -> EyreResult<bool>
|
pub async fn save_user_secret_cbor<T>(&self, key: &str, value: &T) -> EyreResult<bool>
|
||||||
where
|
where
|
||||||
T: Serialize,
|
T: Serialize,
|
||||||
@ -152,7 +152,7 @@ impl ProtectedStore {
|
|||||||
self.save_user_secret(&key, &v).await
|
self.save_user_secret(&key, &v).await
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "trace", skip(self), err)]
|
#[instrument(level = "trace", skip(self))]
|
||||||
pub async fn load_user_secret_cbor<T>(&self, key: &str) -> EyreResult<Option<T>>
|
pub async fn load_user_secret_cbor<T>(&self, key: &str) -> EyreResult<Option<T>>
|
||||||
where
|
where
|
||||||
T: for<'de> Deserialize<'de>,
|
T: for<'de> Deserialize<'de>,
|
||||||
|
@ -185,7 +185,7 @@ impl ProtectedStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "trace", skip(self, value), ret, err)]
|
#[instrument(level = "trace", skip(self, value))]
|
||||||
pub async fn save_user_secret_cbor<T>(&self, key: &str, value: &T) -> EyreResult<bool>
|
pub async fn save_user_secret_cbor<T>(&self, key: &str, value: &T) -> EyreResult<bool>
|
||||||
where
|
where
|
||||||
T: Serialize,
|
T: Serialize,
|
||||||
@ -194,7 +194,7 @@ impl ProtectedStore {
|
|||||||
self.save_user_secret(&key, &v).await
|
self.save_user_secret(&key, &v).await
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(level = "trace", skip(self), err)]
|
#[instrument(level = "trace", skip(self))]
|
||||||
pub async fn load_user_secret_cbor<T>(&self, key: &str) -> EyreResult<Option<T>>
|
pub async fn load_user_secret_cbor<T>(&self, key: &str) -> EyreResult<Option<T>>
|
||||||
where
|
where
|
||||||
T: for<'de> Deserialize<'de>,
|
T: for<'de> Deserialize<'de>,
|
||||||
|
@ -282,7 +282,7 @@ impl RouteSpecStore {
|
|||||||
let rsstdb = table_store.open("RouteSpecStore", 1).await?;
|
let rsstdb = table_store.open("RouteSpecStore", 1).await?;
|
||||||
rsstdb.store_cbor(0, b"content", &content).await?;
|
rsstdb.store_cbor(0, b"content", &content).await?;
|
||||||
|
|
||||||
// Keep secrets in protected store as well
|
// // Keep secrets in protected store as well
|
||||||
let pstore = self
|
let pstore = self
|
||||||
.unlocked_inner
|
.unlocked_inner
|
||||||
.routing_table
|
.routing_table
|
||||||
|
Loading…
Reference in New Issue
Block a user