mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
stream: honor StreamMap::next_many limit (#8215)
This commit is contained in:
@@ -632,6 +632,10 @@ where
|
||||
should_loop = true;
|
||||
|
||||
idx = idx.wrapping_add(1) % self.entries.len();
|
||||
|
||||
if added == limit {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Poll::Ready(None) => {
|
||||
// Remove the entry
|
||||
|
||||
Reference in New Issue
Block a user