Skip to content

Commit

Permalink
Fix undesired propagation of interests to routers from peers
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Oct 7, 2024
1 parent 7e32e72 commit 4b28b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zenoh/src/net/routing/hat/p2p_peer/interests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ impl HatInterestTrait for HatCode {
};
for dst_face in tables.faces.values_mut().filter(|f| {
f.whatami == WhatAmI::Router
|| (options.tokens()
|| (face.whatami == WhatAmI::Client
&& options.tokens()
&& mode == InterestMode::Current
&& f.whatami == WhatAmI::Peer
&& !initial_interest(f).map(|i| i.finalized).unwrap_or(true))
Expand Down

0 comments on commit 4b28b3a

Please sign in to comment.