aboutsummaryrefslogtreecommitdiff
path: root/src/bayou.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-23 15:16:44 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-23 15:16:44 +0100
commit8cd9801030e24c58621b3bed8723e8a8a4722ef8 (patch)
tree4272b416e50705288dc568d5b65a309a59037c3c /src/bayou.rs
parent14c7a96c282e20ff0d5343a7a378554f34983d21 (diff)
downloadaerogramme-8cd9801030e24c58621b3bed8723e8a8a4722ef8.tar.gz
aerogramme-8cd9801030e24c58621b3bed8723e8a8a4722ef8.zip
various fixes
Diffstat (limited to 'src/bayou.rs')
-rw-r--r--src/bayou.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bayou.rs b/src/bayou.rs
index 72c2b80..3042f94 100644
--- a/src/bayou.rs
+++ b/src/bayou.rs
@@ -265,7 +265,7 @@ impl<S: BayouState> Bayou<S> {
);
self.k2v
.row(&self.path, &ts.to_string())
- .set_value(seal_serialize(&op, &self.key)?)
+ .set_value(&seal_serialize(&op, &self.key)?)
.push()
.await?;
@@ -500,7 +500,7 @@ impl K2vWatch {
}
_ = this.notify.notified() => {
let rand = u128::to_be_bytes(thread_rng().gen()).to_vec();
- if let Err(e) = row.set_value(rand).push().await
+ if let Err(e) = row.set_value(&rand).push().await
{
error!("Error in bayou k2v watch updater loop: {}", e);
tokio::time::sleep(Duration::from_secs(30)).await;