From d3145be7444d14a05c69db7a3cd0aca78b07d388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 19 Oct 2020 14:00:00 +0200 Subject: [PATCH] Rename the meta UpdateStore method --- src/update_store.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/update_store.rs b/src/update_store.rs index e0f796af4..14566ed9f 100644 --- a/src/update_store.rs +++ b/src/update_store.rs @@ -168,7 +168,7 @@ impl UpdateStore { } /// Returns the update associated meta or `None` if the update deosn't exist. - pub fn update_meta(&self, update_id: u64) -> heed::Result> + pub fn meta(&self, update_id: u64) -> heed::Result> where M: for<'a> Deserialize<'a>, { let rtxn = self.env.read_txn()?; @@ -204,7 +204,7 @@ mod tests { thread::sleep(Duration::from_millis(100)); - let meta = update_store.update_meta(update_id).unwrap().unwrap(); + let meta = update_store.meta(update_id).unwrap().unwrap(); assert_eq!(meta, "kiki processed"); } @@ -233,13 +233,13 @@ mod tests { thread::sleep(Duration::from_millis(400 * 3 + 100)); - let meta = update_store.update_meta(update_id_kiki).unwrap().unwrap(); + let meta = update_store.meta(update_id_kiki).unwrap().unwrap(); assert_eq!(meta, "kiki processed"); - let meta = update_store.update_meta(update_id_coco).unwrap().unwrap(); + let meta = update_store.meta(update_id_coco).unwrap().unwrap(); assert_eq!(meta, "coco processed"); - let meta = update_store.update_meta(update_id_cucu).unwrap().unwrap(); + let meta = update_store.meta(update_id_cucu).unwrap().unwrap(); assert_eq!(meta, "cucu processed"); } }