Skip to content

Commit f69ccc3

Browse files
authored
Ensure all handler events are covered (#5945)
* Ensure handler events are covered
1 parent 1503f7d commit f69ccc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

beacon_node/lighthouse_network/src/rpc/handler.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,12 @@ where
374374
id: outbound_info.req_id,
375375
})));
376376
}
377+
378+
// Also handle any events that are awaiting to be sent to the behaviour
379+
if !self.events_out.is_empty() {
380+
return Poll::Ready(Some(self.events_out.remove(0)));
381+
}
382+
377383
Poll::Ready(None)
378384
}
379385

0 commit comments

Comments
 (0)