fix httpui

This commit is contained in:
mpostma 2021-02-01 14:38:04 +01:00
parent 3b60432687
commit 8f43698a60
No known key found for this signature in database
GPG Key ID: CBC8A7C1D7A28C3A
2 changed files with 3 additions and 3 deletions

View File

@ -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())
}
},

View File

@ -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.