Fix missing fn

This commit is contained in:
Ivan 2024-10-21 17:05:52 +02:00 committed by Igor Katson
parent 3c470e1670
commit 1129d5b6e6
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -148,6 +148,10 @@ impl PeerStateNoMut {
}
}
pub fn is_live(&self) -> bool {
matches!(&self.0, PeerState::Live(_))
}
pub fn get_live_mut(&mut self) -> Option<&mut LivePeerState> {
match &mut self.0 {
PeerState::Live(l) => Some(l),