Skip to content

Commit c2e8fef

Browse files
authored
Simplify trace construction in the cursors example. (#374)
1 parent 93da913 commit c2e8fef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/cursors.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ use std::collections::BTreeMap;
3939

4040
use timely::dataflow::operators::probe::Handle;
4141
use timely::progress::frontier::AntichainRef;
42+
use timely::dataflow::operators::Probe;
4243

4344
use differential_dataflow::input::Input;
4445
use differential_dataflow::operators::arrange::ArrangeByKey;
45-
use differential_dataflow::operators::*;
4646
use differential_dataflow::trace::cursor::Cursor;
4747
use differential_dataflow::trace::TraceReader;
4848

@@ -65,8 +65,7 @@ fn main() {
6565
/* Be sure to attach probe to arrangements we want to enumerate;
6666
* so we know when all updates for a given epoch have been added to the arrangement. */
6767
graph_arr
68-
.as_collection(|_, v| *v)
69-
.consolidate()
68+
.stream
7069
//.inspect(move |x| println!("{:?}", x))
7170
.probe_with(&mut probe);
7271

0 commit comments

Comments
 (0)