Skip to content

Commit

Permalink
Simplify trace construction in the cursors example. (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
nooberfsh authored Dec 20, 2022
1 parent 93da913 commit c2e8fef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/cursors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ use std::collections::BTreeMap;

use timely::dataflow::operators::probe::Handle;
use timely::progress::frontier::AntichainRef;
use timely::dataflow::operators::Probe;

use differential_dataflow::input::Input;
use differential_dataflow::operators::arrange::ArrangeByKey;
use differential_dataflow::operators::*;
use differential_dataflow::trace::cursor::Cursor;
use differential_dataflow::trace::TraceReader;

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

Expand Down

0 comments on commit c2e8fef

Please sign in to comment.