Skip to content

Commit 9bb8e92

Browse files
committed
Fix mdbook
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 07f2af8 commit 9bb8e92

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

mdbook/src/chapter_4/chapter_4_1.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ You can create a new scope in any other scope by invoking the `scoped` method:
1818
extern crate timely;
1919

2020
use timely::dataflow::Scope;
21+
use timely::progress::SubgraphBuilder;
2122

2223
fn main() {
2324
timely::example(|scope| {
2425

2526
// Create a new scope with the same (u64) timestamp.
26-
scope.scoped::<u64,_,_>("SubScope", |subscope| {
27+
scope.scoped::<u64,_,_,SubgraphBuilder<_,_>>("SubScope", |subscope| {
2728
// probably want something here
2829
})
2930

@@ -46,14 +47,15 @@ extern crate timely;
4647

4748
use timely::dataflow::Scope;
4849
use timely::dataflow::operators::*;
50+
use timely::progress::SubgraphBuilder;
4951

5052
fn main() {
5153
timely::example(|scope| {
5254

5355
let stream = (0 .. 10).to_stream(scope);
5456

5557
// Create a new scope with the same (u64) timestamp.
56-
let result = scope.scoped::<u64,_,_>("SubScope", |subscope| {
58+
let result = scope.scoped::<u64,_,_,SubgraphBuilder<_,_>>("SubScope", |subscope| {
5759
stream.enter(subscope)
5860
.inspect_batch(|t, xs| println!("{:?}, {:?}", t, xs))
5961
.leave()
@@ -108,14 +110,15 @@ extern crate timely;
108110

109111
use timely::dataflow::Scope;
110112
use timely::dataflow::operators::*;
113+
use timely::progress::SubgraphBuilder;
111114

112115
fn main() {
113116
timely::example(|scope| {
114117

115118
let stream = (0 .. 10).to_stream(scope);
116119

117120
// Create a new scope with a (u64, u32) timestamp.
118-
let result = scope.iterative::<u32,_,_>(|subscope| {
121+
let result = scope.iterative::<u32,_,_,SubgraphBuilder<_,_>>(|subscope| {
119122
stream.enter(subscope)
120123
.inspect_batch(|t, xs| println!("{:?}, {:?}", t, xs))
121124
.leave()

mdbook/src/chapter_4/chapter_4_2.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ extern crate timely;
8989

9090
use timely::dataflow::operators::*;
9191
use timely::dataflow::Scope;
92+
use timely::progress::SubgraphBuilder;
9293

9394
fn main() {
9495
timely::example(|scope| {
@@ -97,7 +98,7 @@ fn main() {
9798

9899
// Create a nested iterative scope.
99100
// Rust needs help understanding the iteration counter type.
100-
scope.iterative::<u64,_,_>(|subscope| {
101+
scope.iterative::<u64,_,_,SubgraphBuilder<_,_>>(|subscope| {
101102

102103
let (handle, stream) = subscope.loop_variable(1);
103104

timely/examples/event_driven_thread_stat.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::rc::Rc;
33
use std::time::Duration;
44
use timely::dataflow::operators::{Input, Map, Probe};
55
use timely::logging::{TimelyLogger, TimelySummaryLogger};
6-
use timely::progress::{Antichain, ChangeBatch, Operate, Source, SubgraphBuilder, Target, Timestamp};
7-
use timely::progress::operate::SharedProgress;
6+
use timely::progress::{ChangeBatch, Operate, Source, SubgraphBuilder, Target, Timestamp};
7+
use timely::progress::operate::{Connectivity, SharedProgress};
88
use timely::progress::subgraph::SubgraphBuilderT;
99
use timely::progress::timestamp::Refines;
1010
use timely::scheduling::Schedule;
@@ -53,7 +53,7 @@ impl<TOuter: Timestamp, OP: Operate<TOuter>> Operate<TOuter> for ThreadStatSubgr
5353
self.inner.outputs()
5454
}
5555

56-
fn get_internal_summary(&mut self) -> (Vec<Vec<Antichain<TOuter::Summary>>>, Rc<RefCell<SharedProgress<TOuter>>>) {
56+
fn get_internal_summary(&mut self) -> (Connectivity<TOuter::Summary>, Rc<RefCell<SharedProgress<TOuter>>>) {
5757
self.inner.get_internal_summary()
5858
}
5959

@@ -294,12 +294,12 @@ fn main() {
294294

295295
// create a new input, exchange data, and inspect its output
296296
for _dataflow in 0 .. dataflows {
297-
let logging = worker.log_register().get("timely").map(Into::into);
297+
let logging = worker.logging();
298298
worker.dataflow_subgraph::<_, _, _, _, ThreadStatSubgraphBuilder<SubgraphBuilder<_, _>>>("Dataflow", logging, (), |(), scope| {
299299
let (input, mut stream) = scope.new_input();
300300
for _step in 0 .. length {
301301
stream = stream.map(|x: ()| {
302-
// Simluate CPU intensive task
302+
// Simulate CPU intensive task
303303
for i in 0..1_000_000 {
304304
std::hint::black_box(i);
305305
}

0 commit comments

Comments
 (0)