Purge replies regularly
This commit is contained in:
parent
d10efb8757
commit
76412e8287
1 changed files with 1 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ impl State {
|
||||||
event_rx: &mut mpsc::UnboundedReceiver<Event>,
|
event_rx: &mut mpsc::UnboundedReceiver<Event>,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
while let Some(ev) = event_rx.recv().await {
|
while let Some(ev) = event_rx.recv().await {
|
||||||
|
self.replies.purge();
|
||||||
match ev {
|
match ev {
|
||||||
Event::Message(msg) => self.on_msg(msg, event_tx)?,
|
Event::Message(msg) => self.on_msg(msg, event_tx)?,
|
||||||
Event::SendCmd(data, reply_tx) => self.on_send_cmd(data, reply_tx).await?,
|
Event::SendCmd(data, reply_tx) => self.on_send_cmd(data, reply_tx).await?,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue