Skip to content

Commit

Permalink
Ensure all handler events are covered (sigp#5945)
Browse files Browse the repository at this point in the history
* Ensure handler events are covered
  • Loading branch information
AgeManning authored Jun 19, 2024
1 parent 1503f7d commit f69ccc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beacon_node/lighthouse_network/src/rpc/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,12 @@ where
id: outbound_info.req_id,
})));
}

// Also handle any events that are awaiting to be sent to the behaviour
if !self.events_out.is_empty() {
return Poll::Ready(Some(self.events_out.remove(0)));
}

Poll::Ready(None)
}

Expand Down

0 comments on commit f69ccc3

Please sign in to comment.