Assorted cleanups.
Some checks are pending
Rust / build (push) Waiting to run

This commit is contained in:
Rayhaan Jaufeerally
2024-08-08 20:46:41 +00:00
parent 0cd3a120d0
commit 5130177bf4
8 changed files with 61 additions and 45 deletions

View File

@ -568,7 +568,6 @@ where
self.hold_timer_expired().await?;
}
PeerTimerEvent::KeepaliveTimerExpire() => {
trace!("Keepalive timer expired");
self.send_keepalive().await?;
}
},
@ -867,7 +866,6 @@ where
/// keepalive message.
/// Takes a lock on the peer object.
async fn send_keepalive(&mut self) -> Result<(), std::io::Error> {
info!("Sending keepalive");
match self.tcp_stream.as_mut() {
Some(conn) => {
let keepalive = BGPMessage {