From f60f136dec22be847322b978b346c4f8e6c0862e Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Fri, 20 Sep 2024 11:15:59 +0200 Subject: [PATCH] Fix router push_declaration_profile computation (#1460) --- zenoh/src/net/routing/hat/router/interests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenoh/src/net/routing/hat/router/interests.rs b/zenoh/src/net/routing/hat/router/interests.rs index 33bb3ddf6b..e3c74b8c9e 100644 --- a/zenoh/src/net/routing/hat/router/interests.rs +++ b/zenoh/src/net/routing/hat/router/interests.rs @@ -115,6 +115,6 @@ impl HatInterestTrait for HatCode { #[inline] pub(super) fn push_declaration_profile(tables: &Tables, face: &FaceState) -> bool { - face.whatami == WhatAmI::Client - || (face.whatami == WhatAmI::Peer && !hat!(tables).full_net(WhatAmI::Peer)) + !(face.whatami == WhatAmI::Client + || (face.whatami == WhatAmI::Peer && !hat!(tables).full_net(WhatAmI::Peer))) }