Skip to content

Commit

Permalink
Ensure handler events are covered
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Jun 18, 2024
1 parent ab7db7c commit a75ff31
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 a75ff31

Please sign in to comment.