Skip to content

Commit

Permalink
Don't register current interests declaration replies
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 6, 2024
1 parent 93ecace commit 98d4b8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions zenoh/src/net/routing/hat/client/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ fn declare_simple_token(
interest_id: Option<InterestId>,
send_declare: &mut SendDeclare,
) {
register_simple_token(tables, face, id, res);

propagate_simple_token(tables, res, face, send_declare);

if let Some(interest_id) = interest_id {
if let Some((interest, _)) = face.pending_current_interests.get(&interest_id) {
let wire_expr = Resource::get_best_key(res, "", interest.src_face.id);
Expand All @@ -137,6 +133,9 @@ fn declare_simple_token(
),
)
}
} else {
register_simple_token(tables, face, id, res);
propagate_simple_token(tables, res, face, send_declare);
}
}

Expand Down
7 changes: 3 additions & 4 deletions zenoh/src/net/routing/hat/p2p_peer/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ fn declare_simple_token(
interest_id: Option<InterestId>,
send_declare: &mut SendDeclare,
) {
register_simple_token(tables, face, id, res);

propagate_simple_token(tables, res, face, send_declare);

if let Some(interest_id) = interest_id {
if let Some((interest, _)) = face.pending_current_interests.get(&interest_id) {
let wire_expr = Resource::get_best_key(res, "", interest.src_face.id);
Expand All @@ -176,6 +172,9 @@ fn declare_simple_token(
),
)
}
} else {
register_simple_token(tables, face, id, res);
propagate_simple_token(tables, res, face, send_declare);
}
}

Expand Down

0 comments on commit 98d4b8a

Please sign in to comment.