From d0e8ceeb250ce362d7d9bf2c6e5c297c716259cc Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 13 Jun 2020 15:20:39 -0400 Subject: ... --- examples/demo1.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/demo1.rs b/examples/demo1.rs index 47d1423..0c735f8 100644 --- a/examples/demo1.rs +++ b/examples/demo1.rs @@ -191,13 +191,9 @@ fn test( records: Vec, wal: &mut WALWriter, ) -> Vec { - let records: Vec = records - .into_iter() - .map(|s| s.into_bytes().into_boxed_slice()) - .collect(); let mut res = Vec::new(); - for r in wal.grow(&records).into_iter() { - let ring_id = futures::executor::block_on(r).unwrap(); + for r in wal.grow(records).into_iter() { + let ring_id = futures::executor::block_on(r).unwrap().1; println!("got ring id: {:?}", ring_id); res.push(ring_id); } -- cgit v1.2.3-70-g09d2