Skip to content

Commit

Permalink
Fix Interest Declare replies behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed May 23, 2024
1 parent 72a28b6 commit 959fb6e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/linkstate_peer/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ impl HatPubSubTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
let sub_info = SubscriberInfo {
reliability: Reliability::Reliable, // @TODO compute proper reliability to propagate from reliability of known subscribers
};
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/linkstate_peer/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ impl HatQueriesTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
if let Some(res) = res.as_ref() {
if aggregate {
if hat!(tables).peer_qabls.iter().any(|qabl| {
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/p2p_peer/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl HatPubSubTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
let sub_info = SubscriberInfo {
reliability: Reliability::Reliable, // @TODO compute proper reliability to propagate from reliability of known subscribers
};
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/p2p_peer/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl HatQueriesTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
if let Some(res) = res.as_ref() {
if aggregate {
if tables.faces.values().any(|src_face| {
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/router/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ impl HatPubSubTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
let sub_info = SubscriberInfo {
reliability: Reliability::Reliable, // @TODO compute proper reliability to propagate from reliability of known subscribers
};
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/router/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ impl HatQueriesTrait for HatCode {
aggregate: bool,
) {
if mode.current() && face.whatami == WhatAmI::Client {
let interest_id = mode.future().then_some(id);
let interest_id = (!mode.future()).then_some(id);
if let Some(res) = res.as_ref() {
if aggregate {
if hat!(tables).router_qabls.iter().any(|qabl| {
Expand Down

0 comments on commit 959fb6e

Please sign in to comment.