Skip to content

Conversation

@DenisBiryukov91
Copy link
Contributor

@DenisBiryukov91 DenisBiryukov91 commented Jan 22, 2026

Description

Account for declared ke in Query::reply

What does this PR do?

If declared ke is passed to Query::reply, the optimization will be taken into account, instead of completely unwrapping ke string.

Why is this change needed?

Removes unnecessary copy of ke string in Query::reply if ke is fully optimized (this is in particular always the case for advanced publisher cache).

Related Issues

None


🏷️ Label-Based Checklist

Based on the labels applied to this PR, please complete these additional requirements:

Labels: internal

🏠 Internal Change

This PR is marked as internal (not user-facing):

  • No API changes - Public APIs unchanged
  • No behavior changes - External behavior identical
  • Refactoring/maintenance - Code improvements only
  • Tests still pass - All existing tests pass without modification

Lighter review: Internal changes may have lighter review requirements.

Instructions:

  1. Check off items as you complete them (change - [ ] to - [x])
  2. The PR checklist CI will verify these are completed

This checklist updates automatically when labels change, but preserves your checked boxes.

@DenisBiryukov91 DenisBiryukov91 added the internal Changes not included in the changelog label Jan 22, 2026
@DenisBiryukov91 DenisBiryukov91 changed the title Account for declared ke in reply Account for declared ke in Query::reply Jan 22, 2026
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.02%. Comparing base (8d059ff) to head (5dd9557).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2387      +/-   ##
==========================================
+ Coverage   72.01%   72.02%   +0.01%     
==========================================
  Files         390      390              
  Lines       62792    62820      +28     
==========================================
+ Hits        45217    45246      +29     
+ Misses      17575    17574       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@OlivierHecart
Copy link
Contributor

Failing tests are independent from this PR.

@OlivierHecart OlivierHecart merged commit fb4d1c8 into eclipse-zenoh:main Jan 28, 2026
19 of 23 checks passed
@OlivierHecart OlivierHecart deleted the reply-use-declared-ke branch January 28, 2026 14:45
@DenisBiryukov91 DenisBiryukov91 mentioned this pull request Jan 29, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes not included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants