Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port zenoh_c to zenoh_cpp #311

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use zenoh::KeyExpr
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
ahcorde committed Nov 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4f7a7b9af30d921c110b509bbe144ce5b023d584
7 changes: 3 additions & 4 deletions rmw_zenoh_cpp/src/detail/rmw_client_data.cpp
Original file line number Diff line number Diff line change
@@ -272,15 +272,14 @@ void ClientData::add_new_reply(std::unique_ptr<ZenohReply> reply)
reply_queue_.size() >= adapted_qos_profile.depth)
{
// Log warning if message is discarded due to hitting the queue depth
z_view_string_t keystr;
z_keyexpr_as_view_string(z_loan(keyexpr_.value()._0), &keystr);
std::string keystr = std::string(keyexpr_.value().as_string_view());
RMW_ZENOH_LOG_ERROR_NAMED(
"rmw_zenoh_cpp",
"Query queue depth of %ld reached, discarding oldest Query "
"for client for %.*s",
adapted_qos_profile.depth,
static_cast<int>(z_string_len(z_loan(keystr))),
z_string_data(z_loan(keystr)));
keystr.size(),
keystr.c_str());
reply_queue_.pop_front();
}
reply_queue_.emplace_back(std::move(reply));