notmuch: fix tests
This commit is contained in:
parent
7a6000be26
commit
e34f2a1f39
@ -23,10 +23,10 @@ fn parse_one() -> Result<(), Box<dyn Error>> {
|
||||
let total = nm.count("*")? as f32;
|
||||
let start = Instant::now();
|
||||
nm.message_ids("*")?
|
||||
.iter()
|
||||
.enumerate()
|
||||
.par_bridge()
|
||||
.for_each(|(i, msg)| {
|
||||
let msg = msg.expect("failed to unwrap msg");
|
||||
let ts = nm
|
||||
.show(&msg)
|
||||
.expect(&format!("failed to show msg: {}", msg));
|
||||
@ -77,9 +77,7 @@ fn parse_bulk() -> Result<(), Box<dyn Error>> {
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
//.par_bridge()
|
||||
.for_each(|(i, chunk)| {
|
||||
let msgs: Result<Vec<_>, _> = chunk.collect();
|
||||
let msgs = msgs.expect("failed to unwrap msg");
|
||||
.for_each(|(i, msgs)| {
|
||||
let query = msgs.join(" OR ");
|
||||
let ts = nm
|
||||
.show(&query)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user