Skip to content

Commit d2ede1c

Browse files
committed
Downgrade capability validity test to debug_assert
1 parent 87f9a2a commit d2ede1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct InputHandleCore<T: Timestamp, C: Container, P: Pull<Message<T, C>>> {
3030
///
3131
/// Each timestamp received through this input may only produce output timestamps
3232
/// greater or equal to the input timestamp subjected to at least one of these summaries.
33-
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
33+
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
3434
logging: Option<Logger>,
3535
}
3636

@@ -147,9 +147,9 @@ pub fn _access_pull_counter<T: Timestamp, C: Container, P: Pull<Message<T, C>>>(
147147
/// Constructs an input handle.
148148
/// Declared separately so that it can be kept private when `InputHandle` is re-exported.
149149
pub fn new_input_handle<T: Timestamp, C: Container, P: Pull<Message<T, C>>>(
150-
pull_counter: PullCounter<T, C, P>,
151-
internal: Rc<RefCell<Vec<Rc<RefCell<ChangeBatch<T>>>>>>,
152-
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
150+
pull_counter: PullCounter<T, C, P>,
151+
internal: Rc<RefCell<Vec<Rc<RefCell<ChangeBatch<T>>>>>>,
152+
summaries: Rc<RefCell<PortConnectivity<T::Summary>>>,
153153
logging: Option<Logger>
154154
) -> InputHandleCore<T, C, P> {
155155
InputHandleCore {
@@ -225,7 +225,7 @@ impl<'a, T: Timestamp, CB: ContainerBuilder, P: Push<Message<T, CB::Container>>>
225225
/// });
226226
/// ```
227227
pub fn session_with_builder<'b, CT: CapabilityTrait<T>>(&'b mut self, cap: &'b CT) -> Session<'b, T, CB, PushCounter<T, CB::Container, P>> where 'a: 'b {
228-
assert!(cap.valid_for_output(self.internal_buffer), "Attempted to open output session with invalid capability");
228+
debug_assert!(cap.valid_for_output(self.internal_buffer), "Attempted to open output session with invalid capability");
229229
self.push_buffer.session_with_builder(cap.time())
230230
}
231231

0 commit comments

Comments
 (0)