Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReceiveSet never terminates when it definitely should #7959

Open
teh-cmc opened this issue Oct 31, 2024 · 0 comments
Open

ReceiveSet never terminates when it definitely should #7959

teh-cmc opened this issue Oct 31, 2024 · 0 comments
Labels
🪳 bug Something isn't working

Comments

@teh-cmc
Copy link
Member

teh-cmc commented Oct 31, 2024

See this code:

for rx in rxs {
while rx.is_connected() {
while let Ok(msg) = rx.recv() {
if let Some(log_msg) = msg.into_data() {
sink.send(log_msg);
}
}
}
}
// TODO(cmc): This is what I would have normally done, but this never terminates for some
// reason.
// let rx = ReceiveSet::new(rxs);
// while rx.is_connected() {
// while let Ok(msg) = rx.recv() {
// if let Some(log_msg) = msg.into_data() {
// sink.send(log_msg);
// }
// }
// }

@teh-cmc teh-cmc added the 🪳 bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant