Skip to content

Commit

Permalink
Fix OAM handling
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Jan 10, 2024
1 parent 458e64c commit b69ae82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zenoh/src/net/primitives/demux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ impl TransportPeerEventHandler for DeMux {
NetworkBody::Request(m) => self.face.send_request(m),
NetworkBody::Response(m) => self.face.send_response(m),
NetworkBody::ResponseFinal(m) => self.face.send_response_final(m),
NetworkBody::OAM(_m) => (),
NetworkBody::OAM(m) => {
if let Some(transport) = self.transport.as_ref() {
let ctrl_lock = zlock!(self.face.tables.ctrl_lock);
let mut tables = zwrite!(self.face.tables.tables);
ctrl_lock.handle_oam(&mut tables, &self.face.tables, m, transport)?
}
}
}

// match ctx.msg.body {
Expand Down

0 comments on commit b69ae82

Please sign in to comment.