From 37653b4fa494fc8f421afebdad9449d73904d7b7 Mon Sep 17 00:00:00 2001 From: Josh Casale Date: Wed, 1 May 2024 12:38:25 -0400 Subject: [PATCH] comment --- vortex-ipc/src/reader.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vortex-ipc/src/reader.rs b/vortex-ipc/src/reader.rs index f8da140254..bc2f9ce642 100644 --- a/vortex-ipc/src/reader.rs +++ b/vortex-ipc/src/reader.rs @@ -575,6 +575,9 @@ mod tests { { let mut iter = array_reader.take(&indices).unwrap(); + + // verify that for a fully-consumed iterator, the destructor does not advance the + // underlying message stream to the next message, which would be very bad while iter.next().is_some() { // Consume the iterator }