Include successful replies in conn event stream

This commit is contained in:
Joscha 2022-06-23 13:39:09 +02:00
parent 1e61f15e8d
commit 1ae81899a6

View file

@ -251,12 +251,11 @@ impl State {
self.replies.complete(id, packet.content.clone()); self.replies.complete(id, packet.content.clone());
} }
// Shovel events into self.packet_tx, assuming that no event ever // Shovel events and successful replies into self.packet_tx. Assumes
// errors. Events with errors are simply ignored. // that no even ever errors and that erroring replies are not
// interesting.
if let Ok(data) = &packet.content { if let Ok(data) = &packet.content {
if data.is_event() { self.packet_tx.send(data.clone())?;
self.packet_tx.send(data.clone())?;
}
} }
// Play a game of table tennis // Play a game of table tennis