Skip to content

Commit 8826f4d

Browse files
committed
Remove GuardedMessageEvent
1 parent 7341835 commit 8826f4d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

timely/src/dataflow/operators/generic/builder_rc.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::dataflow::operators::generic::handles::{InputHandleCore, new_input_ha
2121
use crate::dataflow::operators::generic::operator_info::OperatorInfo;
2222
use crate::dataflow::operators::generic::builder_raw::OperatorShape;
2323
use crate::progress::operate::PortConnectivity;
24-
use crate::logging::TimelyLogger as Logger;
2524

2625
use super::builder_raw::OperatorBuilder as OperatorBuilderRaw;
2726

@@ -35,22 +34,19 @@ pub struct OperatorBuilder<G: Scope> {
3534
/// For each input, a shared list of summaries to each output.
3635
summaries: Vec<Rc<RefCell<PortConnectivity<<G::Timestamp as Timestamp>::Summary>>>>,
3736
produced: Vec<Rc<RefCell<ChangeBatch<G::Timestamp>>>>,
38-
logging: Option<Logger>,
3937
}
4038

4139
impl<G: Scope> OperatorBuilder<G> {
4240

4341
/// Allocates a new generic operator builder from its containing scope.
4442
pub fn new(name: String, scope: G) -> Self {
45-
let logging = scope.logging();
4643
OperatorBuilder {
4744
builder: OperatorBuilderRaw::new(name, scope),
4845
frontier: Vec::new(),
4946
consumed: Vec::new(),
5047
internal: Rc::new(RefCell::new(Vec::new())),
5148
summaries: Vec::new(),
5249
produced: Vec::new(),
53-
logging,
5450
}
5551
}
5652

@@ -90,7 +86,7 @@ impl<G: Scope> OperatorBuilder<G> {
9086
let shared_summary = Rc::new(RefCell::new(connection.into_iter().collect()));
9187
self.summaries.push(Rc::clone(&shared_summary));
9288

93-
new_input_handle(input, Rc::clone(&self.internal), shared_summary, self.logging.clone())
89+
new_input_handle(input, Rc::clone(&self.internal), shared_summary)
9490
}
9591

9692
/// Adds a new output to a generic operator builder, returning the `Push` implementor to use.

timely/src/dataflow/operators/generic/handles.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::dataflow::channels::Message;
1717
use crate::communication::{Push, Pull};
1818
use crate::{Container, Data};
1919
use crate::container::{ContainerBuilder, CapacityContainerBuilder};
20-
use crate::logging::TimelyLogger as Logger;
2120

2221
use crate::dataflow::operators::InputCapability;
2322
use crate::dataflow::operators::capability::CapabilityTrait;
@@ -31,7 +30,6 @@ pub struct InputHandleCore<T: Timestamp, C: Container, P: Pull<Message<T, C>>> {
3130
/// Each timestamp received through this input may only produce output timestamps
3231
/// greater or equal to the input timestamp subjected to at least one of these summaries.
3332
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
34-
logging: Option<Logger>,
3533
}
3634

3735
/// Handle to an operator's input stream, specialized to vectors.
@@ -82,13 +80,9 @@ impl<T: Timestamp, C: Container, P: Pull<Message<T, C>>> InputHandleCore<T, C, P
8280
/// ```
8381
#[inline]
8482
pub fn for_each<F: FnMut(InputCapability<T>, &mut C)>(&mut self, mut logic: F) {
85-
let mut logging = self.logging.take();
8683
while let Some((cap, data)) = self.next() {
87-
logging.as_mut().map(|l| l.log(crate::logging::GuardedMessageEvent { is_start: true }));
8884
logic(cap, data);
89-
logging.as_mut().map(|l| l.log(crate::logging::GuardedMessageEvent { is_start: false }));
9085
}
91-
self.logging = logging;
9286
}
9387

9488
}
@@ -150,13 +144,11 @@ pub fn new_input_handle<T: Timestamp, C: Container, P: Pull<Message<T, C>>>(
150144
pull_counter: PullCounter<T, C, P>,
151145
internal: Rc<RefCell<Vec<Rc<RefCell<ChangeBatch<T>>>>>>,
152146
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
153-
logging: Option<Logger>
154147
) -> InputHandleCore<T, C, P> {
155148
InputHandleCore {
156149
pull_counter,
157150
internal,
158151
summaries,
159-
logging,
160152
}
161153
}
162154

0 commit comments

Comments
 (0)