From 8f43698a6015a534f21fc5176fb4ae812a39e701 Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 1 Feb 2021 14:38:04 +0100 Subject: [PATCH] fix httpui --- http-ui/src/main.rs | 2 +- src/search/facet/facet_condition.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http-ui/src/main.rs b/http-ui/src/main.rs index 53c2cb460..a29eb8895 100644 --- a/http-ui/src/main.rs +++ b/http-ui/src/main.rs @@ -382,7 +382,7 @@ async fn main() -> anyhow::Result<()> { }); match result { - Ok(()) => wtxn.commit().map_err(Into::into), + Ok(_) => wtxn.commit().map_err(Into::into), Err(e) => Err(e.into()) } }, diff --git a/src/search/facet/facet_condition.rs b/src/search/facet/facet_condition.rs index 2f0444dce..42c2327a9 100644 --- a/src/search/facet/facet_condition.rs +++ b/src/search/facet/facet_condition.rs @@ -732,13 +732,13 @@ mod tests { // Set the faceted fields to be the channel. let mut wtxn = index.write_txn().unwrap(); - let mut builder = Settings::new(&mut wtxn, &index); + let mut builder = Settings::new(&mut wtxn, &index, 0); builder.set_searchable_fields(vec!["channel".into(), "timestamp".into()]); // to keep the fields order builder.set_faceted_fields(hashmap!{ "channel".into() => "string".into(), "timestamp".into() => "integer".into(), }); - builder.execute(|_| ()).unwrap(); + builder.execute(|_, _| ()).unwrap(); wtxn.commit().unwrap(); // Test that the facet condition is correctly generated.